Skip to content

Laggrif/Discord-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord-Bot

A discord bot including lol stats, chatting, music and more

How to use?

Create missing files and directories

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.

Install required modules

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:

In addition, you must install ffmpeg to be able to play music.

Running the bot

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.

Support, feature request and contact

You can join my discord server for any question or post an issue on github.

About

A discord bot including lol stats, chatting, music and more

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages