Skip to content

chatGPT but Discord bot version using discord.js and openai

License

Notifications You must be signed in to change notification settings

baoanhng/chatGPT-discord-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chatGPT-discord-bot

packages that I use: discord.js, openai

Installation

Clone the repo on your system:

git clone https://github.com/3raphat/chatGPT-discord-bot.git

Then, navigate to the directory and install the npm packages:

npm install

Configuration

Rename .env.example to .env and fill out the values:

TOKEN=
CLIENT_ID=
OPENAI_API_KEY=

How to generate a OpenAI API key

  1. Go to https://beta.openai.com/account/api-keys.

  2. Click on Create new secret key button.

  3. Copy the OpenAI API key, then paste it into the OPENAI_API_KEY in .env file.

Start

npm run start

After run the bot, use node deploy-commands.js to deploy the slash commands.

About

chatGPT but Discord bot version using discord.js and openai

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.3%
  • Shell 0.7%