chatGPT enabled Discord bot written in JS
At root of project create a .env
file. In this file you will need to include the following variables
BOT_TOKEN
- The token for your bot from the Discord Developer PortalBOT_CLIENT_ID
- The client id for your bot from the Discord Developer PortalOPENAI_TOKEN
- The access token from OpenAI
/chat
- TalkaBot will return chatGPT response based on the users query
In terminal run npm install && node index.js
In terminal run docker build . -t talka-bot
then docker run -d talka-bot