ChatGPT Discord Bot
FreeDiscord bot.
FreeFree tier
Inputs: textOutputs: text
About ChatGPT Discord Bot
Build your own Discord bot with multiple AI providers, including free (g4f), OpenAI, Claude, Gemini, and Grok. Supports text chat, image generation via DALL-E 3 and Gemini, customizable system prompts, and deployment on desktop or Docker. Open-source and self-hosted.
Key Features
Multiple AI providers: free (g4f), OpenAI, Claude, Gemini, Grok
Free provider (g4f) with no API key required
Image generation via DALL-E 3 and Gemini
Customizable system prompt via system_prompt.txt
Supports slash commands: /chat, /provider, /draw
Deploy locally or with Docker
Optional logging disable
Pros & Cons
Pros
- Free and open-source (MIT license implied)
- No API key required for the free provider
- Supports multiple premium AI providers as options
- Easy Docker deployment for quick setup
- Customizable system prompt for tailored interactions
Cons
- Free provider is unstable and uses an outdated model (close to GPT-3.5/GPT-4)
- Requires technical knowledge to set up (Python, environment variables, Discord bot creation)
- No hosted version; must be self-deployed
- Premium providers require separate API keys with associated costs
Best For
Provide AI-powered chat assistance in a Discord serverGenerate images on demand using DALL-E or GeminiCreate a custom AI assistant for community engagementTest and compare responses from multiple AI providers
FAQ
How do I set up the bot?
Create a Discord application, get the bot token, enable Message Content Intent, invite the bot to your server, then run the bot with Python or Docker after installing dependencies.
Do I need an API key to use the bot?
No, the free provider (g4f) works without any API key. For premium providers (OpenAI, Claude, Gemini, Grok) you need to add their API keys to the .env file.
Can the bot generate images?
Yes, using the /draw command with OpenAI DALL-E 3 or Google Gemini. Image generation requires the respective API key for each provider.
How do I change the AI provider?
Use the /provider command in Discord to switch between available providers (free, openai, claude, gemini, grok).