With this script, discord users can rank themself with commands.
Your rank depend of your overall fortnite Kill/Death ratio.
Here are the ranks you can have, you need to create all of these ranks in your discord in order the bot to work. If you misspelled a word, errors will occur.
@Wood, 0.00 → 0.99 K/D
@Carton, 1.00 → 1.49 K/D
@Bronze, 1.50 → 1.99 K/D
@Silver, 2.00 → 2.49 K/D
@Gold, 2.50 → 2.99 K/D
@Platinum, 3.00 → 3.49 K/D
@Diamond, 3.50 → 3.99 K/D
@Ruby, 4.00 → 4.99 K/D
@Royality, 5.00 → 5.99 K/D
@Illuminati, 6.00 → 7.99 K/D
@Hackeur, 8.00 → + K/D
Once the ranks are created you can create rooms with permissions based on the rank / K/D of the user.
An example of a discord implementing the bot.
Jean-Michel Poirier (poirier.jmp@gmail.com)
Discord: Wiz#8991
1- Make sure you have python3 installed on the terminal you are using.
2- Install the discord library by typing this command in your terminal: python3 -m pip install -U discord.py
3- To setup the bot, open the file bot.py
and modify the constant DISCORD_TOKEN
with your own discord token. You can find your discord token at https://discordapp.com/developers/applications/me/
You need to log in your discord account. Create an app then copy the token from the app. The token is under client secret.
4- To add the bot to your discord, from the app created copy your Client ID into this URL: https://discordapp.com/oauth2/authorize?&client_id=CLIENT_ID_HERE&scope=bot&permissions=470019135 and paste this URL into a web browser.
5- (Optional) Then, modify the constant FORTNITE_API_KEY
with your fornitetracker api key. You can get one at https://fortnitetracker.com/site-api
6- You are all setup to run the script, execute the command ./script.sh
Once your bot is running, in a text channel you can use theses commands:
/nick YOUR_FORNITE_USERNAME
Change your discord username to your fortnite username./rank
Automaticly rank you according to your fortnite Kill/Death ratio./patch
Return the last patch notes of fortnite.
The project is under Apache License 2.0.
- ...