Skip to content

Latest commit

 

History

History
59 lines (36 loc) · 1.61 KB

README.md

File metadata and controls

59 lines (36 loc) · 1.61 KB

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