Skip to content

ekaomk/GPT3.5-Turbo-Discord-Bot

Repository files navigation

ChatGPT 3.5 Turbo Discord Bot

A Discord bot that uses the ChatGPT 3.5 Turbo model to generate responses to messages.

using node.js typescript and discord.js

Installation

npm i

Usage

  1. Modify environment variables in .env file
# DISCORD
DISCORD_CLIENT_ID = 123456789012345678
DISCORD_BOT_TOKEN = abcdefghijklmnopqrstuvwxyz

# CHATGPT
OPENAI_API_KEY = abcdefghijklmnopqrstuvwxyz
  1. Run the bot
# for dev mode
npm run dev
# for production mode
npm run build
npm start
  1. Invite the bot to your server
https://discord.com/oauth2/authorize?client_id=INSERT_CLIENT_ID_HERE&scope=bot&permissions=8
  1. Use command /chat to start a conversation with the bot

About

A Discord bot that uses the ChatGPT 3.5 Turbo model to generate responses to messages.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published