LoL Game Tracker Bot
A Discord bot that tracks League of Legends players and automatically posts detailed game stats whenever they finish a match. Track your friends, follow pros, or keep tabs on your own performance with rich Discord embeds showing KDA, damage, items, runes, and rank changes.
Features
Automatic Game Detection
Polls the Riot API to detect when tracked players finish games and posts results automatically.
Detailed Stats
Shows KDA, CS, damage, gold, vision score, items, runes, and current rank with LP changes.
Multi-Player Tracking
Track multiple players per server. Add or remove players anytime with simple slash commands.
Rich Embeds
Beautiful Discord embeds with champion icons, color-coded win/loss, and organized stat fields.
Example Embed
Commands
| Command | Description |
|---|---|
/track add <riot_id> | Add a player to track (e.g., Faker#KR1) |
/track remove <riot_id> | Stop tracking a player |
/track list | Show all tracked players in this server |
/setchannel <channel> | Set where game results are posted |
/lookup <riot_id> [games] [compact] | Look up match history with full stats, team details, and clickable OP.GG links |
Setup
After inviting the bot to your server, use /setchannel to pick a channel for game updates.
Then add players with /track add PlayerName#TAG. The bot will automatically post when
any tracked player finishes a game.
Tech Stack
Built with TypeScript, discord.js v14, and the Riot Games API. Uses Match v5 for game history, League v4 for rank data, and Data Dragon CDN for champion and item icons. Persists tracked players to JSON for simplicity. Hosted on a Node.js VPS.