Skip to content

rachaelbarker499/Discord-ChatGPT-Bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord ChatGPT Bot

Base Docker Image CI Docker Image CI

A Discord bot based on ChatGPT with support for opening multiple different conversation sessions in channels and DM, each Channel and DM having a separate contextual conversation.

Usage:

In channel:

@bot !start Start a conversation

@bot [message]Ask a question

@bot !endEnding the conversation

In DM:

!start Start a conversation

[message]Ask a question

!endEnding the conversation

Install:

With git clone:

# Install dependencies
pip install discord.py
pip install chatgptpy --upgrade

# Set environment variables
export DISCORD_TOKEN="YOUR_TOKEN"
export OPENAI_EMAIL="YOUR_EMAIL"
export OPENAI_PASSWORD="YOUR_PASSWORD"

# Run
python run.py

With docker:

docker run -d --name=Discoed-ChatGPT-Bot --restart=unless-stopped \
-e DISCORD_TOKEN="YOUR_TOKEN" \
-e OPENAI_EMAIL="YOUR_EMAIL" \
-e OPENAI_PASSWORD="YOUR_PASSWORD" \
xxxbrian/discord_chatgpt_bot:latest

About

ChatGPT Discord Bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.6%
  • Dockerfile 2.4%