modulepackage
0.0.0-20240427153853-a9c0f70d640b
Repository: https://github.com/bingbr/league-api-bot.git
Documentation: pkg.go.dev
# README
League API bot
A Discord bot that utilizes the Riot Games API to bring the world of League of Legends into your server. With this bot, you can easily access information about your favorite players and their matches, including statistics, rankings and even the weekly free champions. You can also set up a notification so you never miss a player's game.
Try it now!
Add this bot to your Discord server
Commands available
Command | Autocomplete Option | Description |
---|---|---|
/summoner | region | View information about an account, such as level and rank statistics. |
/mastery | region , level | View the status of up to 25 champions from a single account at the mastery level of your choice. |
/free champion | :x: | Show the latest weekly free champions rotation. |
/track config | channel | Choose the #Discord-channel for live & post-game stats from a tracked account. |
/track add | region | Track an account. The bot will let you know when the account start a match and when the match ends, including the result. |
/track remove | region | Stop tracking an account. |
/leadboard | :x: | View the ranking of tracked accounts on the Discord server. |
How to run in the cloud
- Open Railway or a similar cloud service
- Clone this repo into your
New Project
- Add Postgresql database to your created environment
- Place your Riot Games API token and your Discord bot token in your League API bot
variables
.
DISCORD_TOKEN=****
RIOT_TOKEN=****
Configuration
Live game and post game
Free champion rotation
Summoner
Mastery
Leaderboard
Legal disclaimer
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.
Made with
- GO (DiscordGo, GoDotEnv and pgx)
- PostgreSQL