Skip to content

Discord bot using the OpenAI API for conversation.

Notifications You must be signed in to change notification settings

shouples/discordgpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exploring the Discord API with discord.py and the OpenAI API.

This is mainly used for toying around with a bot user in a single server. I haven't tried anything with multi-server configs yet, but I don't imagine they'd work well for the time being.

Setup

TODO items

  • switch from ChatCompletion to the Assistants API; each server in its own thread with channel:username as the message name values
    • store channel-username: threadid mappings locally; if no thread ID exists, create thread and carry over last (up to) 10 messages in history
  • summarize user-attached images via https://platform.openai.com/docs/guides/vision
  • add function calling for:
  • handle multi-server bots and settings

Shorter-term fun goals

  • Docker build with helm deployment
  • Feedback loop based on 👍👎 reactions to bot messages
    • Persistent storage
  • Web UI for monitoring context window and some basic overrides/commands

Longer-term fun goals

About

Discord bot using the OpenAI API for conversation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages