A discord bot including lol stats, chatting, music and more
Create a file named Tokens.json in ./res/settings. This file allows to run different bots (Tokens) without having to change the code.
Content should be of the type
{
"Bot" : {
"name of bot 1" : ["Token 1", "Welcome channel id"],
"name of bot 2" : ["Token 2", "Welcome channel id"],
...more bots...
},
"LoL" : "Riot API Key"
}
To change the default bot, you must edit line 136 of Discord_Bot.py.
Use sudo pip3 install or sudo python3 -m pip install to install the following modules if you are running a raspberry pi with oled 128x64 display. Otherwise, omit sudo:
- py-cord
- yt-dlp)
- psutil
- PyNaCl
- adafruit-circuitpython-ssd1306
- pillow
- requests
- opencv-python
- scikit-image
In addition, you must install ffmpeg to be able to play music.
In a terminal, run python3 <Path-to-project>/Discord_Bot.py to run the default bot. To select another one, simply add its name at the end. For example python3 <Path-to-project>/Discord_Bot.py Test.
If you want to use the 128x64 display, you must add sudo before.
This discord 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.
You can join my discord server for any question or post an issue on github.