Discord bot for ChatGPT integration
Top 55.3% on sourcepulse
This project provides a Discord bot that integrates ChatGPT, enabling enhanced team collaboration and communication within Discord servers. It targets Discord server administrators and users looking to leverage AI for productivity.
How It Works
The bot utilizes OpenAI's Chat Completion API (specifically gpt-3.5-turbo
) to interact with users. Users can invoke the bot using the /chat
command followed by their message. The bot maintains a history of the last ten interactions, which can be cleared with the /reset
command. It also supports image generation via DALL-E 2 using the /imagine
command.
Quick Start & Requirements
OPENAI_API_TOKEN
, OPENAI_MODEL_ENGINE
, SYSTEM_MESSAGE
, DISCORD_TOKEN
), and run. A cron job is recommended to keep the Replit instance active.Highlighted Details
gpt-3.5-turbo
) and DALL-E 2 for text and image generation.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The Replit free tier requires a cron job to prevent the bot from sleeping due to inactivity. The bot's system message role is currently limited to user-defined testing.
2 years ago
Inactive