Skip to content

xunafay/discord-assistants

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Assistants

Discord Assistants is a Rust project designed to seamlessly integrate OpenAI GPT assistants into the Discord platform, enabling users to engage with AI assistants in their Discord servers.

Showcase

Multi agent conversations: Alt text Characters based on the books of Becky Chambers

DALL-E image generation using slash commands: Alt text

Other supported features:

  • Text to speech using OpenAI models
  • Transcription of audio files using OpenAI Whisper
  • Assistant tool usage. See available tools in src/tools/ folder

Getting Started

To run the project, the following steps are required:

  • Minio Setup: The project requires a Minio instance to be running. Set the Minio endpoint, access key and secret key with the environment variables S3_URL, S3_KEY and S3_SECRET respectively.
  • Set Environment Variables: Ensure that the environment variables OPENAI_API_KEY and DISCORD_TOKEN are set.
  • Discord Bot Permissions: The Discord bot requires the message content intent.
  • Transcription: The transcription functionality requires yt-dlp to be installed on the system.
  • Whisper Functionality: Due to an issue in async-openai, whisper functionality is currently implemented using a small Python script. This script requires a virtual environment named venv in the root dir of the project with the OpenAI package installed.

Contributions

Contributions to the Discord Assistants project are very welcome! Open an issue or submit a pull request to get started.