Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 1.13 KB

README.md

File metadata and controls

53 lines (40 loc) · 1.13 KB

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