Skip to content

AndrewKohn/gpt-discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gpt-discord-bot

Andrew Kohn

Introduction

A discord chatbot utilizing openAI's chatGPT. As of right now, the chatbot will store 20 past messages to it's conversation log from each individual user in the chat.

The bot will act under the name Gu'raath, a caveman that works at a call center in the USA.

Technology Used

javascript icon   node.js icon   Discord.js icon

Installation & running chatbot

A .env.example is provided and can be used as a template.

  1. Create a .env file in the base directory.

  2. Follow the discord dev portal and create a new application & bot.

  • Insert bot token to your .env file.
  1. Install and/or open discord and create a server.
  • Create a text room or use the general chat and copy the channel id.
  • Insert channel id to the .env file.
  1. Sign-up/Login to openAI and insert your openAI API key to the .env file.
npm install
node index.js

About

A discord chatbot utilizing openAI's chatGPT.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published