Skip to content

osman-koc/openai-discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAI Discord Bot

It is a Discord bot that answers questions using the OpenAI API developed with the GPT-3 artificial intelligence algorithm.

Getting Started

1) Clone repository

mkdir openai-discord-bot
cd openai-discord-bot
git clone https://github.com/osman-koc/openai-discord-bot.git

2) Copy env file

cp .env.example .env

3) Create discord bot and OpenAI account

4) Add discord bot to your server

5) Fil keys in env

CLIENT_TOKEN='{discord bot token}'
OPENAI_API_KEY='{openai.com api key}'
ROBOT_USER_ID='{discord bot user id}'

6) Run

  • Manuel
npm install
npm run dev
  • Docker
npm run docker 
//OR
docker build -t openai-discord-bot .
docker run -d openai-discord-bot

Example

DiscordScreenshot