LeagueBot is a Discord bot designed to make getting information about League of Legends easier.
!help
- Lists all of the commands and what they are used for.!build [champion]
- Lists the most popular build for the input champion.!setName [summoner]
- Sets your summoner name.!summoner [SummonerName]
- Provides information about a summoner, such as ranking.!random [lane]
- Gives you a random champion to play, you can also give the command a specific lane to select for.!lose
- When you lose, this command willremind you that you're garbagehelp raise your spirits.!win
- Fetches a picture of a dog who is proud of your accomplishment.!free
- Lists the free champions for the week.!chest [summoner]
- Displays the champions that can earn mastery chests.!mastery [champion]
- Displays mastery information for a given champion.!counter [champion]
- Displays five counters to a given champion.
- Get Riot's Data Dragon pack
- Download the Data Dragon pack located here and unpack it.
- Get images from the data pack
- Create a folder in
config
calledphotos
. - Open the unpacked data dragon folder and navigate to
{current_patch}/img
. Copy thechampion
andprofileicon
folders intophotos
. Make sure all files inchampion
are lowercase. - Navigate back to the top of the data dragon folder and then into
img/champion/spash
and copy all files here into a new folder inphotos
namedchampion_tiles
.
- Create a folder in
- Get the list of current champions from the data pack
- Open the unpakced data dragon folder and navigate to
{current_patch}/data/en_US
- Copy
champion.json
into theconfig
folder.
- Open the unpakced data dragon folder and navigate to
- Set up environment variables
- By default LeagueBot uses a .env file
- The three variables that must be set are
TOKEN
- The discord bot tokenLEAGUEKEY
- The Riot API keyCATKEY
- An API key from TheDogAPI
Commands that take [summoner]
as an argument (ex, !chest
) can be used without an argument if the !setName
command has been used to give the robot your league summoner name.
The bot is started with the command node src/bot.js
.
Using pm2, the bot can be started with pm2 start src/bot.js &
and ended with pm2 delete 0
.
LeagueBot isn’t endorsed by Riot Games and doesn’t reflect the views or opinions of Riot Games or anyone officially involved in producing or managing League of Legends. League of Legends and Riot Games are trademarks or registered trademarks of Riot Games, Inc. League of Legends © Riot Games, Inc.