Giter Site home page Giter Site logo

monster0010 / brawlhalla-rewards-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eichelb4rt/bh-rewards-bot

0.0 0.0 0.0 116 KB

farms twitch rewards from brawlhalla dev streams

License: MIT License

Shell 0.21% Python 8.53% TypeScript 91.26%

brawlhalla-rewards-bot's Introduction

bh-rewards-bot

farms twitch rewards from brawlhalla dev streams

Installation

install chrome

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb

install dependencies for puppeteer

sudo apt-get install libnss3 libxss1 libasound2 libatk-bridge2.0-0 libgtk-3-0 libgbm-dev

install node modules

npm i

Screen Problems?

If you're having problems with screen, like Cannot make directory '/run/screen: Permission denied', then run this:

sudo /etc/init.d/screen-cleanup start

Configuration

config.json:

{
    "os": "linux/windows",
    "mode": "farm/harvest/register/login",
    "debug": true/false,
    "headless": true/false,
    "once": true/false
}
  • headless: if the browser is headless. (default: true)
  • once: if the bots should only start once. (default: false)

.env:

CLIENT_ID=<your client id>
CLIENT_SECRET=<your client secret>

This is your Twitch API key that is used to read Brawlhalla's schedule.


users.json:

[
    {
        "name": "account1",
        "password": "password1",
        "registered": true,
        "blocked": false
    },
    {
        "name": "account2",
        "password": "password2",
        "registered": true,
        "blocked": false
    },
    {
        "name": "account3",
        "password": "password3",
        "registered": true,
        "blocked": false
    }
]
  • registered: if the account is registered yet / has granted permissions to the extensions yet. (default: true)
  • blocked: if the account is blocked by Brawlhalla and therefore cannot farm rewards. (default: false)

An account won't be used if it's either not registered or blocked.

Usage

Run bash start.sh. This starts a screen session called bh_rewards. If you don't want a screen session, just run npm run start.

brawlhalla-rewards-bot's People

Contributors

eichelb4rt avatar

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.