A project that demonstrates how to integrate ChatGPT and Open AI in order to observe conversations on a custom Discord server.
-
A computer running Node.JS 18+
-
An account on Discord with a server that you have administrative privileges on. Also, you need to have a Discord token.
-
An account on OpenAI's OpenAI API, and an API key and an organization key.
-
An
.env
file with the following properties:
DISCORD_TOKEN=<YOUR_DISCORD_TOKEN>
OPENAI_ORG=<YOUR_OPENAI_ORG_KEY>
OPENAI_KEY=<YOUR_OPENAI-KEY>
- You need to know how to set up a Discord server.
View this video to lear how to set up a Discord server.
- You need to know how to set up how to write a Discord bot in Node.js.
Watch this video to learn how to write a Discord bot in Node.js:
npm install
node index.js
Once index.js
is up and running the bot will show up in your Discord server.