A Discord bot to display Battlerite player data and other cool things. Everyone is welcome to integrate it on their servers, or if you don't want to host it just ask me for the discord integration link!
Stats embbed message:
Dynamic Streaming role:
-
!br welp
to show all the commands - solo league stats
- 2v2 and 3v3 teams stats
- Dynamic "Streaming" role for who's currently streaming Battlerite
- Rank players by most games played on a specific champion (
!br rank Varesh
) - 3 best champions on (on
!br stats playername
) - player's all champions data
- get live match data
- player's match history
To suggest a feature join the discord on https://discord.gg/5ZZDsXv.
Create file src/main/java/app/Secrets.java, here's a template:
package app.utils;
public class Secrets {
public final static String BOT_TOKEN = "your discord app's secret token";
public final static String BATTLERITE_TOKEN = "your battlerite api key";
// Database
public final static String DATABASE_HOST = "your database's host";
public final static String DATABASE_PORT = "db's port";
public final static String DATABASE_NAME = "db's name";
public final static String DATABASE_USER = "db's user";
public final static String DATABASE_PASSWORD = "db's user password";
}
- Create a role in your discord server and drag it below the bot's role so that the bot can control it
- Change GenericUtils.STREAMER_ROLE_NAME to the name of your "Streaming" role on your server
Database (skip if you don't want need to show the points difference from last game on !br stats playername)
- Create a postgres database
- Fill the fields in
Secrets.java
accordingly
- Install java (version 8 specifically).
- Pull the repository.
- Add the bot to your server with the OAuth2 URL Generator in discordapp.com/developers
gradle run
gradle jar -Dorg.gradle.java.home='/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/'
path being your java home directory- Find your
.jar
atbot-varush/build/libs/bot-varush.jar
- Create branch from
develop
- If you do weird stuff make sure to comment it
- PR to
develop
--
- @Kotaru#0001 - Designed Varush's logo
- @Bohnenkrautsaft#4768 - Assisted with Battlerite's API integration and deployment.
- @Moxian#8121 - Idea & specs for dynamic Streaming role.
- @MTJ#9949 - Idea & specs for the rank command.