Skip to content

A bot that connects Discord to OpenAI because the future is now 🤖

License

Notifications You must be signed in to change notification settings

anultravioletaurora/OpenAI-Discord-Bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAI-Discord-Bridge

A bot that connects Discord to OpenAI because the future is here. You and your fellow Discordians can bask in it's generative goodness

Relies on:

Features:

  • Invoke via slash-command
  • Is slightly sarcastic and sassy to spice things up

Soon-to-be-features

  • Starts a chat if the server goes quiet by prompting itself to start a conversation from a specified list of topics or pick up the conversation from the last (n) messages
    • Tells a joke
    • Asks a question
    • Drops some wisdom / knowledge
  • Configurable levels of humor and sassiness

Run via Docker

docker run -e BOT_TOKEN="yourdiscordbottoken" -e CLIENT_ID="yourdiscordappclientid" -e GUILD_ID="yourdiscordserverid" -e OPENAI_API_KEY="youropenaiapikey" ghcr.io/anultravioletaurora/openai-discord-bridge:latest This will pull the latest "stable" version from the Github container registry. These containers are automatically generated when new releases come out

Environment Variables

Variable Required Description
BOT_TOKEN Yes The bot token generated by Discord
CLIENT_ID Yes The client ID generated by Discord when creating the application
IMAGE_MODEL No (Defaults to dall-e-3) The string of the image generation model the bot should use
GUILD_ID Yes The server ID of the guild the bot will be participating in
GPT_MODEL No (Defaults to gpt-3.5-turbo) The string of the gpt model this bot should use
OPENAI_API_KEY Yes The API key generated in the OpenAI API dashboard