This is a nodejs application that implements a Discord bot with chat GPT completions. The bot is designed to help users have more natural and efficient conversations on the Discord platform.
To run the bot, follow the instructions below.
Before you run the bot, you need to ensure that the following tools are installed on your computer:
- Node.js
To install the required packages, run the following command in your terminal:
npm install
This command will install all the required packages mentioned in the package.json
file.
You need to create an .env
file with the next enviroment variables.
DISCORD_TOKEN=YOUR_DISCORD_TOKEN_HERE
OPENAI_API_KEY=YOUR_OPENAI_API_KEY_HERE
BOT_ID=BOT_ID_HERE
To start the bot, run the following command in your terminal:
node .
This command will start the bot, and it will start listening to messages on your Discord server.
Once the bot is up and running, you can interact with it through Discord messages. To use the GPT completions, you can use the !help to learn more about the commands.
This project is licensed under the MIT License - see the LICENSE file for details