Discord AI Bot is a powerful, AI-powered Discord bot that helps server owners boost engagement and activity levels through intelligent automated conversations. Using Google's Gemini AI, this bot provides natural, context-aware responses that make your Discord server feel more active and engaging.
- AI-Powered Conversations: Natural, context-aware responses using Google's Gemini AI
- Multi-Channel Support: Monitor and respond in multiple channels simultaneously
- Customizable Settings: Adjust AI behavior, response timing, and message settings
- Activity Tracking: Keep logs of all bot activities and conversations
- Level Boosting: Increase server activity levels with consistent, engaging conversations
- Easy Setup: One-click installation with auto-configuration scripts
- Boost Server Activity: Keep your server active 24/7 with AI-generated conversations
- Increase Engagement: Encourage member participation with intelligent responses
- Save Time: Automate routine conversations and welcome messages
- Customize Personality: Adjust the bot's tone and behavior to match your server's culture
- Track Performance: Monitor conversation logs to see what's working
This bot is perfect for Discord server owners who want to maintain high activity levels, boost engagement, and create a more vibrant community without constant manual intervention.
- ๐ Multi-Channel Monitoring: Monitor and respond to messages across multiple Discord channels
- ๐ค AI-Powered Responses: Generate intelligent replies using Google's Gemini AI
- ๐ Multi-Token Support: Use multiple Discord bot tokens for enhanced functionality
- โ๏ธ Per-Channel Configuration: Customize settings for each monitored channel
- ๐จ Colorful Console: Beautiful and informative console output
- ๐ Detailed Logging: Comprehensive logging system for debugging and monitoring
The easiest way to get started is to use our auto-install script:
# Clone the repository
git clone https://github.com/Ashuxd-X/Discord-Ai.git
cd Discord-Ai
# Run the auto-install script
# On Windows:
.\run.ps1
# or
run.bat
# You can also simply double-click the run.bat file in Windows Explorer for automatic setup
# On Linux/macOS:
chmod +x run.sh
./run.sh
The auto-install script will:
- Check if Python is installed
- Install all required dependencies
- Create and configure your .env file
- Set up the logs directory
- Start the bot
If you prefer to set everything up manually:
# Clone the repository
git clone https://github.com/Ashuxd-X/Discord-Ai.git
cd Discord-Ai
# Install dependencies
pip install -r requirements.txt
# Create .env file
touch .env
# Edit .env file with your tokens
# On Windows:
notepad .env
# On Linux/macOS:
nano .env
# Create logs directory
mkdir logs
# Run the bot
python bot.py
-
Copy the example .env file:
# On Windows: copy .env.example .env # On Linux/macOS: cp .env.example .env
-
Open the .env file with a text editor:
# On Windows: notepad .env # On Linux/macOS: nano .env
-
Add your Discord tokens and Google API keys:
DISCORD_TOKENS=your_discord_token_1,your_discord_token_2 GOOGLE_API_KEYS=your_google_api_key_1,your_google_api_key_2
-
Save the file:
- In Notepad: File > Save
- In nano: Press Ctrl+O, then Enter, then Ctrl+X
Create a .env
file in the root directory:
# Discord Bot Tokens (comma-separated for multiple tokens)
DISCORD_TOKENS=your_discord_token_1,your_discord_token_2
# Google API Keys (comma-separated for multiple keys)
GOOGLE_API_KEYS=your_google_api_key_1,your_google_api_key_2
- Open Discord in your web browser
- Press F12 to open Developer Tools
- Go to the "Console" tab
- Paste this code and press Enter:
( webpackChunkdiscord_app.push( [ [''], {}, e => { m=[]; for(let c in e.c) m.push(e.c[c]) } ] ), m ).find( m => m?.exports?.default?.getToken !== void 0 ).exports.default.getToken()
- Copy the token that appears in the console
โ ๏ธ Note: This method has been patched by Discord and no longer works as of recent updates. It is now obsolete.
Use a browser extension that locally extracts your token from your Discord web session. This is ideal for developers working on bots or automation scripts.
๐ Extension & Setup Guide:
๐ Discord Token Viewer Extension - Guide & Download
- Download the ZIP or clone the repo linked above.
- Go to
chrome://extensions/
oredge://extensions/
. - Enable Developer Mode.
- Click Load unpacked and select the folder you extracted.
- Navigate to Discord Web, then click the extension icon.
- Copy your token from the popup.
โ ๏ธ Reminder: Use this only for your own account or bot. Never share your token. Misuse violates Discordโs Terms of Service.
- Go to Google AI Studio
- Create a new API key
- Copy the key
-
Run the bot using one of these methods:
python bot.py
- Double-click
run.bat
(Windows) - Run
.\run.ps1
in PowerShell
-
Enter the Discord channel IDs you want to monitor (comma-separated)
-
Configure settings for each channel:
-
AI and Language Settings
- Use Google Gemini AI: Enable/disable AI responses
- Prompt Language: Choose between English (en) and Hindi (hi)
-
Timing Settings
- Message Read Delay: Time to wait before reading messages
- Reply Interval: Time between auto-replies
- Slow Mode: Respect Discord's slow mode
-
Message Settings
- Send as Reply: Send messages as replies
- Delete Bot Reply: Delete messages after a specified time
-
-
The bot will start monitoring the channels and responding to messages
Logs are stored in the logs
directory:
- ๐
discord_bot.log
: General bot activity โ ๏ธ error.log
: Error messages
- Python 3.8 or higher
- Internet connection
- Discord bot token(s)
- Google Gemini API key(s)
python-dotenv==1.0.0
requests==2.31.0
colorama==0.4.6
aiohttp==3.9.1
asyncio==3.4.3
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Discord API
- Google Gemini AI
- All contributors who have helped improve this project
If you encounter any issues or have questions:
- Check the Issues page
- Create a new issue if needed
Made with โค๏ธ by Ashuxd-X