A Discord bot to assign (EUNE) League of Legends tiers and roles
-
Make sure you have Python 3.5 (or later) installed.
-
Install discord.py. You can probably do this by running this command:
python3.5 -m pip install -U discord.py
If that doesn't work for you, check discord.py's GitHub repo -
Create a new Discord bot by going here and clicking "New Application"
-
Name the bot and give it a picture (for example I called mine "Role assignment bot" and gave it a poro blitzcrank picture)
-
Click "Create Application" and then "Create a bot user"
-
Keep your client id (under "APP DETAILS") and token (under "APP BOT USER")
-
Get a Riot API key from here
-
Rename
credentials.json.template
tocredentials.json
and replace these values:Value Replace it with YOUR_DISCORD_TOKEN
the discord token you got at step 6 YOUR_RIOT_API_KEY
the Riot API key you got at step 7 -
Run the bot.py script:
python3.5 bot.py
-
Add the following roles (all uppercase and in that order) to your server:
Role Display role members separately from online members CHALLENGER ✗ MASTER ✗ DIAMOND ✗ PLATINUM ✗ GOLD ✗ SILVER ✗ BRONZE ✗ UNRANKED ✗ TOP ✓ MID ✓ JUNGLE ✓ ADC ✓ SUPPORT ✓ -
Add the bot to your server by visiting this link (replace
YOUR_CLIENT_ID
with the client id you got at step 6):
https://discordapp.com/oauth2/authorize?&client_id=YOUR_CLIENT_ID
&scope=bot&permissions=469773312 -
Go to your server settings, and move the "Role assignment bot" role to the top of the list
You can send !help
on any Discord text channel and the bot will reply with a help message.
Bot command | Explanation |
---|---|
!assign <roles> |
Assign the given tier(s) and/or role(s) |
!verify <ign> |
Verify a high elo account (diamond or higher) |
The MIT License, check the LICENSE
file.
Role assignment bot 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.