Giter VIP home page Giter VIP logo

bustabit-gambling-bot's Introduction

bustabit-gambling-bot

This script waits for low numbers (reds) streaks, then margintales. It also chases 19x anomalies.

WITH THESE SETTINGS YOU WILL GAIN, BUT THE BOT WILL ALMOST NEVER PLAY, OR RISK MUCH

// // // // // // // // //
//
// Change `RED_TILL_START` to be a smaller number (red streak), and change `WAIT_19` to be smaller (19x fails).
//
// // // // // // // // // //  //
const MULTIPLIER = 2;          // Increase bet on loss by 2
const CASH_OUT = 277;          // Cash out as PERCENTAGE
const RED_TILL_START = 11;     // After 4 crashes under 207(red) we start.
const RED = 207;
const BASE_BET = 100           // Base bet IN SATOSHIES!!! (100 sats = 1 bit)
const CHASE_NINETEENS = false; // set this to true to enable chasing 19's every WAIT_19.
const WAIT_19 = 129;           // Wait this many times since last 19x occurance to start chase.
var crashes = 0;               // Keep track of crashes under RED
var winnings = 0;              // Keep track of winnings
var myBet = 0;                 // Your bet (changing this number is useless, it gets modified IRT)

var last_nineteen = 0;         // Used to track the last 19x occurance.
 
engine.on('game_starting', function(info) {
  if(crashes > RED_TILL_START) {
    console.log('Game in ' + info.time_till_start / 1000 + ' sec. [ PLAYING ]')
  } else {
    console.log('Game in ' + info.time_till_start / 1000 + ' secs. [ NOT PLAYING ]')
  }
  console.log('Last game ' + engine.lastGamePlay())
});
engine.on('game_crash', function(data) {
  if(CHASE_NINETEENS) {
    console.log("Last nineteen - " + last_nineteen);
    if(data.game_crash < 1900) last_nineteen++;
    else last_nineteen = 0;
    if(last_nineteen >= WAIT_19) {
      if(last_nineteen === WAIT_19) myBet = BASE_BET;
      else myBet = BASE_BET + 700 * (last_nineteen - WAIT_19);
      engine.placeBet(myBet, 1907, function(){
        console.log("CHASING NINETEEN! TRY NUMBER" + last_nineteen - WAIT_19 + "!")
        console.log("Betting " + myBet / 100 + " bits.");
      })
      return;
    }
  }
  console.log('Game crashed at ', data.game_crash);
  if(data.game_crash < RED) {
    crashes++;
    if(crashes >= RED_TILL_START && data.game_crash < CASH_OUT) winnings -= myBet / 100;
    console.log("RED DETECTED: " + crashes + " OF " + RED_TILL_START + ".")
  } else {
    crashes = 0;
  }
  if(crashes >= RED_TILL_START || engine.lastGamePlay() === 'LOST') {
    // OLD CODE - THIS WAS MAKING ME MONEY!!!!
    // myBet = (crashes - RED_TILL_START - 1) * 2 * 500;
    // BUT CHANGED IT TO BE RIGHT ANYWAY
    if(crashes === RED_TILL_START) {
      myBet = BASE_BET
    } else { myBet = myBet * MULTIPLIER }
    engine.placeBet(myBet, CASH_OUT, function(){
      console.log("Betting " + myBet / 100 + " bits.");
    });
  }
});
engine.on('cashed_out', function(data) {
  if(data.username === engine.getUsername()) {
    console.log('Cashed out ' + (myBet * data.stopped_at / 100) / 100 + ' bits!');
    winnings +=  (myBet * (data.stopped_at - 100) / 100 ) / 100;
    console.log("Total winnings: " + winnings)
 }
});
engine.on('game_started', function(data) {
  if(data = data[engine.getUsername()]) {
    myBet = data.bet;
  }
});

bustabit-gambling-bot's People

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.