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.
Slash Commands:
/start: Start a new conversation thread, each thread is a separate conversation./chat[message]: Chat the bot with[message], remembers what user said earlier in the conversation./end: End the conversation thread, the bot will forget what user said earlier in the conversation.
With git clone:
# Install dependencies
pip install -r requirements.txt
# Set environment variables
export DISCORD_TOKEN="YOUR_TOKEN"
export OPENAI_EMAIL="YOUR_EMAIL"
export OPENAI_PASSWORD="YOUR_PASSWORD"
# Run
python src/dcbot.pyWith docker:
docker run -d --name=Discord-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- Slash command
- Support retry
- Display mode