LeagueBot is a powerful and fully customizable Discord bot for managing sports leagues, teams, and player data directly from your server. Built with love by krissan ❤️, this bot brings stats, trades, tables, and team profiles to life — all without leaving Discord!
-
📊 Live League Tables
Display dynamically updated standings with games played, wins, losses, points, and more. -
🧑🤝🧑 Team & Player Management
Add, update, and delete players and teams with ease. Supports full player profiles (age, position, archetype, etc.). -
🖼️ Visual Player Cards
Automatically generate stylish stat cards with custom images and player info using PIL. -
🔁 Trades & Transfers
Easily perform trades or copy players and teams between leagues. -
🎯 Interactive Commands
Use commands with arguments or enter interactive prompt mode for guided input. -
🔐 Admin Control
Role-protected commands for league moderation like result reporting, point adjustments, and picture uploads. -
🔍 Searchable League Database
List all leagues, view individual teams, players, or full league tables.
- Python 3.11+
- discord.py
Pillowfor image manipulationaiohttpfor async image downloading- JSON-based persistent storage
Use !help in your server to get a categorized list of all available commands for both regular users and admins.
-
Clone this repo and install requirements
pip install -r requirements.txt
-
Add your Discord bot token in
bot.run('YOUR_TOKEN') -
Run the bot
python bot.py
- Use
!add_player,!add_team, etc., in interactive mode if you’re not comfortable with command-line arguments. - Player cards require
stats.pngandBebasNeue-Regular.ttfin your working directory. - Use
!set_team_pictureto personalize visuals.
Feel free to fork, contribute, or suggest features via pull requests or issues. LeagueBot is community-driven!
MIT License – free to use, modify, and share!