Skip to content

A Discord Bot to display Battlerite stats and leaderboards

License

Notifications You must be signed in to change notification settings

curliq/bot-varush

Repository files navigation

Bot Varush

Codacy Badge

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:

stats message

Dynamic Streaming role:

Streaming role

Features

  • !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.

Setup

Your private keys

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";

}

Streaming role (skip if you don't want the dynamic streaming role feature)

  1. Create a role in your discord server and drag it below the bot's role so that the bot can control it
  2. 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)

  1. Create a postgres database
  2. Fill the fields in Secrets.java accordingly

Run

  1. Install java (version 8 specifically).
  2. Pull the repository.
  3. Add the bot to your server with the OAuth2 URL Generator in discordapp.com/developers
Run locally
  1. gradle run
Build a .jar to deploy your bot somewhere
  1. gradle jar -Dorg.gradle.java.home='/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/' path being your java home directory
  2. Find your .jar at bot-varush/build/libs/bot-varush.jar

Contribute

  1. Create branch from develop
  2. If you do weird stuff make sure to comment it
  3. PR to develop
Contributors

--

Mention worthy
  • @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.

About

A Discord Bot to display Battlerite stats and leaderboards

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages