akon00 / Chat-Gpt-Discord-Bot

This is an example repository of Discord Chat bot based on Chat GPT

Home Page:https://discord.gg/raidenbot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discord-Chat-Bot

This is an example Discord Chat Bot based on Open Ai and Discord.js Library. Enjoy!

Requirements

Startup

  • Create a file named .env.
  • Enter the following details to it:
token="YOUR TOKEN"
OPENAI_API_KEY="API KEY"
  • Save the file. Open Terminal in the Project Directory.
  • Head to Line 60: index.js.
  • Enter the Channel ID
  • Run:
npm i
node index.js
  • You are done.

Configuration

To get Custom Response, just head to prompt variable, and change things accordingly. Do not add so many information, otherwise you will exhaust your free credits quickly.

image

Troubleshooting

  • Error: Status Code 500 : This means there is an server error from OpenAi
  • Error: Status Code 429 : You have been ratelimited from OpenAi

Support

Join our Discord Servers, to get support:

Discord Banner 1

About

This is an example repository of Discord Chat bot based on Chat GPT

https://discord.gg/raidenbot

License:MIT License


Languages

Language:JavaScript 100.0%