Skip to content
This repository was archived by the owner on Dec 20, 2020. It is now read-only.

Getting Started

Elijah edited this page Mar 9, 2020 · 5 revisions

This bot is currently only available if you self-host it, meaning that there is no public bot that you can invite to your server and you must make your own. Worry not, follow these instructions and you will have your very own bot!

  1. Install Python. Python 3.5.3 or higher is the required, 3.6.9 or higher is recommended. Windows and macOS users can use the installer available directly on the downloads page, but GNU/Linux users should refer to their appropriate package managers for installation.
  • If you're using Python for something other than this bot, it is recommended that you create a virtual environment inside of the project folder instead of using the global environment to prevent conflict with any other projects.
  1. Install the required libraries using python3 -m pip install -U discord.py requests.
  2. Create and invite your Discord bot. Replace the your-token-here text with your bot token in the config on the "bot-token" line.
  3. Head over to the Riot Developer Portal, log in, and go to your dashboard. Select "Register Product" and fill out the registration form to create a personal API key. Once you have your API key, replace the your-api-key-here text with your API token in the config on the "riot-api-key" line.
  4. Obtain Data Dragon files from Riot which will provide the locally referenced files for use. These files change with every patch, so new ones will need to be downloaded manually each time. The bot checks for new files from Riot on each start, so if it is your first time running the bot or there have been new ones since your last run it will provide you with a new download link that looks something like this: https://ddragon.leagueoflegends.com/cdn/dragontail-***.tgz. Extract the Data Dragon files to the project folder so that your structure looks something like this:
Bot/
+-- config.json
+-- dragontail-***/
|   +-- ***
+-- main.py
+-- README.md

  1. Set your region, language, and prefix in the remaining fields of the config if you want them to be different than the defaults. The language selector currently only affects champion/item/spell text.
  • Currently supported regions: ['br', 'eun', 'euw', 'jp', 'kr', 'lan', 'las', 'na', 'oce', 'tr', 'ru']
  • Currently supported languages: ['cs_CZ', 'de_DE', 'el_GR', 'en_AU', 'en_GB', 'en_PH', 'en_SG', 'en_US', 'es_AR', 'es_ES', 'es_MX', 'fr_FR', 'hu_HU', 'it_IT', 'ja_JP', 'ko_KR', 'pl_PL', 'pt_BR', 'ro_RO', 'ru_RU', 'th_TH', 'tr_TR', 'vn_VN', 'zh_CN', 'zh_MY', 'zh_TW']
  1. Run the bot with python3 main.py. If you see Brand's champion selection quote in the console, you're good to go!

If you have any issues with the bot after following these instructions then please join the Discord server for support! Please do not use the GitHub issue system for support queries.

Clone this wiki locally