🌐 ONLINE/PRODUCTION BRANCH - Optimized for cloud deployment
For local development and testing, visit the offline branch
A feature-rich Discord Bot built with Python.
- Web Preview - Flask web dashboard for quick status monitoring
- Custom Errors - Custom error handling for easier debugging
- Admin and Trusted Users - Simple permission system for data access
- Ticket System - Feature-rich ticket system for administration
bot/
├── app.py # Flask web dashboard
├── bot.py # Discord bot core
├── cogs/ # Bot command modules
│ ├── admin.py # Admin commands
│ ├── tickets.py # Ticket system
│ ├── events.py # Event handlers
│ ├── data_management.py # Data handling
│ ├── debug.py # Debug utilities
│ └── helper.py # Utility commands
├── utils/ # Utility modules
│ ├── storage.py # Data management
│ ├── permissions.py # Access control
│ └── helper.py # Common utilities
├── config/ # Configuration files
└── customerror.py # Custom exceptions
- Python 3.10+
- Discord.py
- Flask
- Poetry
- A cloud platform (Replit, Heroku, etc.)
- Your bot token and user ID
Bot Token:
- Visit Discord Developer Portal
- Click "New Application" or select an existing one
- Go to "Bot" → "Token"
- Click "Reset Token" and copy your new token
⚠️ Never share your token with anyone!
User ID:
- Open Discord
- Right-click your profile → "Copy User ID"
- Environment Variables:
TOKEN=your_bot_token_here
OWNER_USER_ID=your_user_id_here- Install Dependencies:
poetry install- Start the Bot:
python3 app.pyNote: Start app.py (not bot.py) for web preview functionality.
- Compile commands by yourself
- Benefits: High customization
- Requirements: Advanced programming skills
- Discuss with me in Issues
- Benefits: Lower programming requirements
- Limitations: Less customization
- heyu1145 - Initial work - GitHub
This project is licensed under the MIT License - see the LICENSE file for details.
- GitHub: Issues Page
- Email: heyu12366@outlook.com
⭐ Please star this repo if you find it helpful!