ChatGPT-Discord-Bot  by TheExplainthis

Discord bot for ChatGPT integration

created 2 years ago
598 stars

Top 55.3% on sourcepulse

GitHubView on GitHub
Project Summary

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

  • Install/Run: Deploy to Replit, set environment variables (OPENAI_API_TOKEN, OPENAI_MODEL_ENGINE, SYSTEM_MESSAGE, DISCORD_TOKEN), and run. A cron job is recommended to keep the Replit instance active.
  • Prerequisites: OpenAI API Key, Discord Bot Token with MESSAGE CONTENT INTENT enabled, Administrator permissions for the bot.
  • Setup: Requires obtaining API and bot tokens, configuring environment variables, and setting up a cron job.
  • Links: OpenAI API Keys, Discord Developer Portal, Replit, cron-job.org.

Highlighted Details

  • Integrates ChatGPT (gpt-3.5-turbo) and DALL-E 2 for text and image generation.
  • Supports chat history and a reset command.
  • Free deployment option available via Replit with a recommended cron job for uptime.

Maintenance & Community

  • The project is open-source and accepts support via donations.
  • No specific community channels (Discord/Slack) or roadmap are explicitly mentioned in the README.

Licensing & Compatibility

  • License: MIT.
  • Compatibility: Permissive for commercial use and integration with closed-source applications.

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.

Health Check
Last commit

2 years ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
7 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.