/Role-assignment-bot

A Discord bot to assign (EUNE) League of Legends tiers and roles

Primary LanguagePythonMIT LicenseMIT

Role assignment bot

A Discord bot to assign (EUNE) League of Legends tiers and roles

Setting it up

  1. Make sure you have Python 3.5 (or later) installed.

  2. 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

  3. Create a new Discord bot by going here and clicking "New Application"

  4. Name the bot and give it a picture (for example I called mine "Role assignment bot" and gave it a poro blitzcrank picture)

  5. Click "Create Application" and then "Create a bot user"

  6. Keep your client id (under "APP DETAILS") and token (under "APP BOT USER")

  7. Get a Riot API key from here

  8. Rename credentials.json.template to credentials.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
  9. Run the bot.py script: python3.5 bot.py

  10. 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
  11. 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

  12. Go to your server settings, and move the "Role assignment bot" role to the top of the list

Usage

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)

License

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.