This is a simple Discord chat bot built using discord.js and the gpt-3.5-turbo model from Open AI. This is the same model used for the popular chatbot Chat GPT.
A full video tutorial for this chat bot can be found here
- Clone the repository to the current directory
git clone https://github.com/notunderctrl/gpt-3.5-chat-bot.git .- Install all the dependencies
- Using npm
npm install- Using yarn
yarn-
Create a new file called
.envand copy the format from.env.example(or you can just rename.env.example) -
Update
.envwith your own credentials. -
Start your bot
- Using npm
npm run start- Using yarn
yarn start