test / README.md
mtaaz's picture
Upload 94 files
91c7f83 verified
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

Installation

  1. Clone the repository
git clone <your-repo-url>
cd BOT-
  1. Install dependencies
pip install -r requirements.txt
  1. 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
  1. 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.yaml configuration
  • 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_TOKEN or API keys
  • Use .env file for sensitive configuration
  • Set OWNER_IDS to restrict admin commands
  • The bot uses SQLite with WAL mode for data integrity

๐Ÿค Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. 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 /help command for usage info

Developed with โค๏ธ by Motaz