This project is a Discord bot built with Node.js that utilizes the ChatGPT API for chatbot interactions. Additionally, the bot integrates with Spotify's API to provide music-related functionalities.
The Discord ChatBot with Spotify Integration aims to enhance your Discord server by providing an interactive chatbot experience powered by ChatGPT. Additionally, users can enjoy Spotify music functionalities directly within the Discord server.
- Discord based chatbot
- ChatGPT-powered chatbot interactions
- Spotify API integration for music-related commands
Make sure you have the following prerequisites:
- Node.js installed
- Discord bot token
- Spotify API credentials
- OpenAI API key
-
Clone the repository:
git clone https://github.com/your-username/your-repo.git
Install dependencies:
npm install
Create a .env file in the root of your project:
TOKEN=your-discord-token
OPENAI_KEY=your-openai-api-key
SPOTIFY_CLIENT_ID=your-spotify-client-id
SPOTIFY_CLIENT_SECRET=your-spotify-client-secret
SPOTKEY=your-spotify-client-secret
Replace your-discord-token, your-spotify-client-id, your-spotify-client-secret, and your-openai-api-key with your actual tokens and keys.
To run the Discord bot, use the following command:
npm start
Ensure the bot is invited to your Discord server and has the necessary permissions.
Awaiting more organisation!
Feel free to contribute to this project. If you have suggestions or find issues, please submit them through the GitHub repository's issue tracker. Pull requests are also welcome.
PlaylistBot was developed collaboratively by Feargh and fintonius.