A discord chatbot utilizing openAI's chatGPT. As of right now, the chatbot will store 20 past messages to it's conversation log from each individual user in the chat.
The bot will act under the name Gu'raath, a caveman that works at a call center in the USA.
A .env.example is provided and can be used as a template.
-
Create a .env file in the base directory.
-
Follow the discord dev portal and create a new application & bot.
- Insert bot token to your .env file.
- Install and/or open discord and create a server.
- Create a text room or use the general chat and copy the channel id.
- Insert channel id to the .env file.
- Sign-up/Login to openAI and insert your openAI API key to the .env file.
npm install
node index.js