LoL Game Tracker Bot
A Discord bot that tracks League of Legends players. When a tracked player loads into a game it posts a live lobby card, and when the game ends that post turns into a full match report: a rendered scoreboard with every player's items, runes and rank, plus pages for teams, a kill-by-kill timeline and a detailed breakdown of any player in the game.
Features
Live Game Lobby
As soon as a tracked player loads in, the bot posts a loading-screen style picture of the lobby: champion art, names, ranks, summoner spells, runes and bans, with a running game clock.
Scoreboard Picture
When the game ends, the live post becomes a rendered scoreboard of all players: champion, level, spells, runes, rank, KDA, damage, gold, CS, vision, items, team objectives and a gold-lead graph.
Flip-Through Pages
Buttons under each report open the Teams page, a full timeline of every kill, turret and objective, an LP graph, and a breakdown of any player: runes, build order, skill order, laning, combat and more.
Everyone's Rank
Shows every player's Solo/Duo rank in all game modes, and Flex too in Ranked Flex games, with LP gains and losses for tracked players.
LP Graph
An LP page on each report graphs tracked players' Solo/Duo and Flex LP game by game, with wins, losses, promotions and peak rank. Recent days from before tracking are filled in from op.gg when available.
Every Game Mode
Ranked, normals, Swiftplay, ARAM, ARAM Mayhem (with augments), Arena (placements, duos and augments), Brawl and more. New champions, items and modes are picked up automatically.
League Icons Everywhere
Champions, items, runes, spells, rank emblems and dragons show as real League icons in the message text, not just words.
Friends in the Same Game
Track any number of players per server. When several tracked players are in one game, they share a single live post and report.
Match History Lookup
Look up anyone's recent games and open the same full report for any of them.
Example Post
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] | Show a player's rank and recent games (up to 20); pick one to open its full match report |
/help | How the bot works, every command and what the report buttons show (also on each report's ❔ Help button) |
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 posts a live card when a
tracked player starts a game and turns it into the match report when the game ends.
Tech Stack
Built with TypeScript, discord.js v14 and the Riot Games API: Spectator v5 for live games, Match v5 and its timelines for results, build and skill order, kills and gold over time, and League v4 for ranks. Champion, item, rune and queue data load automatically from Data Dragon and CommunityDragon, so new content needs no code changes. The scoreboard and lobby pictures are drawn as SVG and rendered with sharp, and League icons are uploaded as the bot's own Discord emojis. Tracked players, LP history and report state are kept in JSON. Hosted on a Node.js VPS.