Skip to content

3raphat/chatGPT-discord-bot

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

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

cp .env.example .env

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.

Releases

No releases published

Packages