A simple and straightforward Discord Chatbot powered by OpenAI
Before you can use the code above, you need to make sure that you have all files, which are mentioned below, installed.
- Node.js (Version 20+)
- npm
- Extract the .zip file and put all contents into a folder
- Open a terminal and navigate into the folder
- Run
npm install
Open the file called .env.example
with an Editor
MONGODB_DB=
DISCORD_TOKEN=
OPENAI_APIKEY=
PREFIX=
OWNER_ID=
You have to insert all values into the fields shown above.
Once inserted, make sure to rename the file to .env
.
If you still encounter issues, feel free to message me on Discord. @alreadyjosh