ChatGPT Discord
Introduction
ChatGPT Discord is an advanced AI-powered chatbot designed to seamlessly integrate OpenAI's ChatGPT into Discord servers. It provides real-time conversational capabilities, enabling users to interact with AI for various purposes, from entertainment to productivity.
Key Features
- Seamless Integration: Easily connects ChatGPT with Discord for smooth interaction.
- Customizable Settings: Modify system messages and memory retention settings.
- Error Handling: Detects and provides feedback on API limits and issues.
- Optimized Performance: Efficient real-time AI responses for an engaging experience.
- Scalability: Suitable for small groups or large community servers.
Technical Specifications
- Language: Java (JDA framework)
- Dependencies: Gradle (Kotlin DSL), OpenAI API
- Platform: Discord
Installation & Setup
Requirements
- Java 17 (Oracle OpenJDK 17.0.14)
- Gradle (Kotlin DSL)
Step-by-Step Setup
- Configure Environment Variables:
- Set your OpenAI API Key and Discord Bot Token as environment variables.
- Modify Configuration:
- Open the source code and navigate to lines 222, 223, then enter the channel ID where ChatGPT will be active.
- Deploy and Run:
- Compile the bot using Gradle and launch it on your Discord server.
Setting Environment Variables
Windows (CMD with Admin Privileges)
set DISCORD_BOT_TOKEN=your_discord_token_here
set OPENAI_API_KEY=your_openai_api_key_here
Mac/Linux (Terminal)
export DISCORD_BOT_TOKEN=your_discord_token_here
export OPENAI_API_KEY=your_openai_api_key_here
Available Commands
- ..c → Display the current system message
- ..edit <set/add> → Modify or add system messages
- ..reset → Reset the system message to default
- ..memory → Set the conversation history length
- .. → Send messages that ChatGPT won't process
- ..help → Show all available commands and descriptions
Important Notice
While using this bot, you may encounter various errors. One of the most common errors is 429 (Too Many Requests). This usually occurs when the allocated OpenAI API credits have been exhausted. To continue using the bot, please ensure that your API balance is recharged.
With ChatGPT Discord, you can transform your server into a hub of intelligent and interactive discussions. Get started today and experience the future of AI-driven communication! 🚀