A powerful Discord bot for downloading and organizing media files from channels with smart categorization and Top.gg vote verification.
git clone https://github.com/yourusername/media-download-bot.git
cd media-download-bot
pip install -r requirements.txt
cp env.example .env
# Edit .env with your tokens
python bot.py
| Variable | Description | Required |
|---|---|---|
DISCORD_TOKEN |
Discord Bot Token | ✅ Yes |
TOP_GG_TOKEN |
Top.gg API Token | ❌ No |
LOGS_CHANNEL_ID |
Logs Channel ID | ❌ No |
WEBHOOK_URL |
Webhook URL | ❌ No |
GOFILE_TOKEN |
GoFile Token | ❌ No |
ENABLE_MESSAGE_CONTENT=true if you want to parse plain-text links from message content (requires enabling Message Content Intent in the Discord Developer Portal)./download - Open interactive download menuUsers must vote on Top.gg to access download features:
media-download-bot/
├── bot.py # Main bot file
├── config.py # Configuration settings
├── cogs/ # Bot commands
│ ├── download.py # Download functionality
│ ├── help.py # Help command
│ └── stats.py # Statistics
├── utils/ # Utility modules
│ ├── interactive_menu.py # Interactive menus
│ ├── media_extractor.py # Attachment+embed media extraction (no message content needed)
│ ├── topgg_checker.py # Vote verification
│ ├── smart_classifier.py # File organization
│ └── catbox.py # External hosting
├── requirements.txt # Dependencies
├── env.example # Environment template
└── README.md # This file
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
cp env.example .env
# Add your tokens to .env
# Check environment variables
python check_env.py
# Test Top.gg API connection
python test_topgg.py
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues:
Made with ❤️ for the Discord community