Giter VIP home page Giter VIP logo

bot-varush's Introduction

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.

bot-varush's People

Contributors

codacy-badger avatar curliq avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

mtjcx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.