/reselsmart

A project that demonstrates how to integrate ChatGPT and Open AI in order to observe conversations on a custom Discord server

Primary LanguageJavaScriptMIT LicenseMIT

reselsmart

A project that demonstrates how to integrate ChatGPT and Open AI in order to observe conversations on a custom Discord server.

Screenshot 2023-11-13 at 9 25 16 AM

Requirements

  • 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>

What you need to know how to do

  • 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:

How to get the bot up and running

npm install
node index.js

Once index.js is up and running the bot will show up in your Discord server.