A Discord bot that uses GPT-4 to respond to user messages in a conversational manner. Easy to extend and adapt for various use cases.
- Node.js v14+ installed on your machine.
- A Discord bot token (stored in a
.env
file asBOT_TOKEN
). - An OpenAI API key (stored in a
.env
file asOPENAI_API_KEY
).
-
Clone the repository.
-
Navigate to the project directory.
-
Install the required dependencies:
npm install
-
Set up your
.env
file with the necessary credentials:BOT_TOKEN=<your-discord-bot-token> OPENAI_API_KEY=<your-openai-api-key>
-
Start the bot:
npm start
-
Add the bot to your Discord server, and it will start responding to messages.
- Add multiple ways to interact with the bot in the chat.
- Introduce a feature to help the bot search for music in a holistic manner.
- Integrate external APIs to enable music playback through the bot.
- Implement unit and integration tests to verify individual component functionality and ensure they work well together.