Skip to content

This is a Discord bot to help users have more natural and efficient conversations on the Discord platform with ChatGPT.

License

Notifications You must be signed in to change notification settings

DaniFdz/discord_gpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Bot with Chat GPT Completions

This is a nodejs application that implements a Discord bot with chat GPT completions. The bot is designed to help users have more natural and efficient conversations on the Discord platform.

To run the bot, follow the instructions below.

Installation Requirements

Before you run the bot, you need to ensure that the following tools are installed on your computer:

  • Node.js

Installing Packages

To install the required packages, run the following command in your terminal:

npm install

This command will install all the required packages mentioned in the package.json file.

Setting up the Configuration File

You need to create an .env file with the next enviroment variables.

DISCORD_TOKEN=YOUR_DISCORD_TOKEN_HERE
OPENAI_API_KEY=YOUR_OPENAI_API_KEY_HERE
BOT_ID=BOT_ID_HERE

Running the Bot

To start the bot, run the following command in your terminal:

node .

This command will start the bot, and it will start listening to messages on your Discord server.

Using the Bot

Once the bot is up and running, you can interact with it through Discord messages. To use the GPT completions, you can use the !help to learn more about the commands.

License

This project is licensed under the MIT License - see the LICENSE file for details

About

This is a Discord bot to help users have more natural and efficient conversations on the Discord platform with ChatGPT.

Topics

Resources

License

Stars

Watchers

Forks