metadata
title: Ultimate AI & Music Bot
emoji: ๐ค
colorFrom: blue
colorTo: purple
sdk: docker
sdk_version: 20.10.25
python_version: '3.11'
app_file: bot/main.py
pinned: false
๐ค Ultimate AI & Music Discord Bot
A feature-rich, multi-purpose Discord bot with cyberpunk aesthetics, AI integration, music playback, economy system, and more.
โจ Features
๐ต Music System
- Full music playback with Wavelink/Lavalink
- Queue management, filters, 24/7 mode
- Playlist support and lyrics display
- Rich music control panels with buttons
๐ค AI Suite
- OpenRouter & Gemini AI integration
- Auto-chat mode in dedicated channels
- Image analysis and prompt generation
- Multiple AI personalities (Wise, Sarcastic, Technical, Funny)
๐ฐ Economy & Engagement
- Wallet, bank, daily rewards
- Work, gamble, rob, shop system
- XP/leveling with rank cards
- Leaderboards and inventory
๐ฎ Games & Fun
- Trivia (Gaming, Movies, Series)
- Arcade games (Mario challenge)
- Board games (Chess, Checkers, Connect 4, Othello)
- Classic games (XO, 8ball, Slots, Dice, Coinflip)
๐ก๏ธ Moderation & Admin
- Ban, kick, mute, warn, purge
- Slowmode, lock/unlock channels
- Server backup and restore
- Auto-moderation features
๐ Multi-Language Support
- 14+ languages: Arabic, English, French, Spanish, German, etc.
- Full i18n with emoji placeholders
- Per-server language configuration
๐ซ Community Features
- Ticket system for support
- Polls and suggestions
- Giveaways with auto-winner selection
- Verification system
๐ Configuration
- Per-server settings panel
- Custom channels for logs, welcome, daily messages
- DJ role, premium tiers, music autoplay
- Game news and free games alerts
๐ Quick Start
Prerequisites
- Python 3.11+
- Discord Bot Token (Discord Developer Portal)
- Optional: OpenRouter API key, Gemini API key
Installation
- Clone the repository
git clone <your-repo-url>
cd BOT-
- Install dependencies
pip install -r requirements.txt
- Set up environment variables
cp .env.example .env
Edit .env with your configuration:
DISCORD_TOKEN=your_bot_token_here
PREFIX=!
OWNER_IDS=your_discord_user_id
OPENROUTER_API_KEY=your_openrouter_key
GEMINI_API_KEY=your_gemini_key
- Run the bot
python -m bot.main
๐ณ Docker Deployment
docker build -t discord-bot .
docker run -d --env-file .env discord-bot
๐ Cloud Deployment
HuggingFace Spaces
- Push your code to a HF Space
- Set environment variables in Space settings
- The bot will auto-start on deployment
Render
- Connect your GitHub repository
- Use the
render.yamlconfiguration - Add environment variables in Render dashboard
โ๏ธ Configuration
Required Environment Variables
| Variable | Description | Example |
|---|---|---|
DISCORD_TOKEN |
Your Discord bot token | MTIz... |
PREFIX |
Command prefix | ! or / |
OWNER_IDS |
Comma-separated owner user IDs | 123456789,987654321 |
Optional Environment Variables
| Variable | Description | Default |
|---|---|---|
OPENROUTER_API_KEY |
OpenRouter API key for AI | - |
GEMINI_API_KEY |
Google Gemini API key | - |
OPENROUTER_MODEL |
Default AI model | meta-llama/llama-3.3-70b-instruct:free |
DB_PATH |
Custom database path | database.db |
HF_TOKEN |
HuggingFace token for DB sync | - |
HF_DB_REPO_ID |
HuggingFace repo for cloud sync | - |
PORT |
Keep-alive server port | 10000 |
๐ Project Structure
BOT-/
โโโ bot/
โ โโโ cogs/ # Bot modules (cogs)
โ โ โโโ admin.py
โ โ โโโ ai_suite.py
โ โ โโโ media.py
โ โ โโโ community.py
โ โ โโโ ...
โ โโโ utils/ # Utility modules
โ โโโ locales/ # Translation files
โ โโโ main.py # Bot entry point
โ โโโ config.py # Configuration loader
โ โโโ database.py # Database layer
โ โโโ emojis.py # Emoji system
โ โโโ i18n.py # Translations
โ โโโ theme.py # Styling & colors
โโโ requirements.txt
โโโ Dockerfile
โโโ render.yaml
โโโ .env.example
โโโ README.md
๐ฎ Available Commands
Once the bot is running, use <prefix>menu or /menu to see all available commands organized by category:
- Music: play, pause, skip, queue, volume, filters
- Admin: ban, kick, mute, warn, purge, backup
- Fun: 8ball, trivia, meme, roll, mario
- AI: chat, ask_image, imagine, summarize
- Economy: balance, daily, work, gamble, shop
- Utility: serverinfo, userinfo, ping, remind
- Configuration: set, language, setup
๐ก๏ธ Security Notes
- Never share your
DISCORD_TOKENor API keys - Use
.envfile for sensitive configuration - Set
OWNER_IDSto restrict admin commands - The bot uses SQLite with WAL mode for data integrity
๐ค Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
๐ License
This project is provided as-is for educational and community use.
๐ Support
- Open an issue on GitHub for bug reports
- Check the wiki for common problems
- Use the bot's
/helpcommand for usage info
Developed with โค๏ธ by Motaz