League-API-bot

command module
v0.0.0-...-cb3ddc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

README

League API bot

A Discord bot that looks up League of Legends player stats, tracks live and post-game results, and shows the weekly free champion rotation. Built with Go, the Riot Games API, and PostgreSQL.

Made with

Try it now!

Add to Discord

Commands

Command Autocomplete Description
/search region View information about an account (level, solo/duo and flex rank).
/free week View the current free champion rotation.
/leaderboard Show tracked players ranked by solo/duo MMR.
/track config channel Set the channel where tracking updates are posted.
/track add region Add an account to track. Posts live-game and post-game info.
/track remove account Stop tracking an account.

How to run in the cloud

  1. Open Railway or a similar cloud service
  2. Clone this repo into your New Project
  3. Add Postgresql database to your created project.
  4. Set your Riot Games API key, Discord bot token and DATABASE_URL in your League API bot variables.

How to run locally

Prerequisites
  1. Create your environment file:
cp .env.example .env
  1. Edit .env and set your Discord and Riot API key:
DISCORD_TOKEN=your_discord_bot_token
RIOT_API_KEY=RGAPI-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  1. Start Postgres and the bot:
docker compose up --build -d

Screenshots

Configuration

Using auto-complete to configure the account tracker Adding an account to be tracked Bot response to commands

Live game and post game

Live game and post-game statistics

Free champion

Champion's free week rotation

Summoner

Account stats

Leaderboard

Server leaderboard

League API Bot was created under Riot Games' "Legal Jibber Jabber" policy using assets owned by Riot Games. Riot Games does not endorse or sponsor this project.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
app

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL