Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Bustabit Average Bot
- Please, donate!
- Bitcoin: 1JwsycUM2AzyBJoLdyfKis9UdFq2V9ynxG
- Email: fobvo@hmamail.com
- */
- var avarageStreak = 4; //Get average of x streaks
- var ifAvarageBelowBet = 200; //150 = 1.50x If average of y streaks is below x, then bet
- var autoCashout = 150; //200 = 2.00x Auto cashout
- /*
- Bustabit Average Bot
- Please, donate!
- Bitcoin: 1JwsycUM2AzyBJoLdyfKis9UdFq2V9ynxG
- Email: fobvo@hmamail.com
- */
- var baseBet = 1000; //bits to bet
- var bankroll = 10; //% percent of bankroll to bet
- var useBankroll = true; //false = use baseBet true = use bankroll
- var cooldownAfterWon = 2; //cooldown if x times won streak
- var cooldownForGamesMin = 2; //cooldown for minimum x games
- var cooldownForGamesMax = 3; //cooldown for maximum x games
- var martingale = true; //martingale if lost
- var games = []; //If you dont want to wait "avarageStreak" games, change this like;
- // ["150","140","298","565"] //(last 4 games)
- // If you want to wait for "avarageStreak" games, leave blank.
- /*
- Bustabit Average Bot
- Please, donate!
- Bitcoin: 1JwsycUM2AzyBJoLdyfKis9UdFq2V9ynxG
- Email: fobvo@hmamail.com
- */
- //////////////////////////////
- //Do not edit below or script may won't work
- //////////////////////////////
- var lastGameLost = false;
- var lastBet = 0;
- var waitforxgames = 0;
- var wonstreak = 0;
- var lastwon = false;
- var martingaleWaiting = true;
- engine.on('game_starting', function(info) {
- if(waitforxgames > 0)
- {
- waitforxgames--;
- console.log(waitforxgames + " games left for cooldown");
- } else {
- if(engine.lastGamePlay() == "LOST")
- {
- if(martingale)
- {
- if(!martingaleWaiting)
- {
- lastBet = lastBet * 2;
- console.log("Last game lost, doubling bet to " + (lastBet / 100).toFixed(0));
- amt = lastBet;
- martingaleWaiting = true;
- engine.placeBet(amt, autoCashout, false);
- } else {
- console.log("Martingale cooldown");
- martingaleWaiting = false;
- }/*
- Bustabit Average Bot
- Please, donate!
- Bitcoin: 1JwsycUM2AzyBJoLdyfKis9UdFq2V9ynxG
- Email: fobvo@hmamail.com
- */
- } else {
- console.log("Last game lost");
- games = games.slice(-avarageStreak);
- var total = 0;
- for(var i = 0; i < games.length; i++) {
- total += parseInt(games[i]);
- }
- var avarage = (total / games.length).toFixed(0);
- console.log("Avarage of "+avarageStreak+" games: " + (avarage / 100) + "x");
- if(avarage <= ifAvarageBelowBet)
- {
- var amt = 0;
- if(useBankroll)
- {
- //When i'm writing this code only God and i understand what i'm doing
- //Now only God does
- amt = (((((engine.getBalance() / 100)) * bankroll) / 100).toFixed(0) * 100);
- } else {
- amt = (baseBet * 100);
- }
- console.log("Betting...");
- lastBet = amt;
- engine.placeBet(amt, autoCashout, false);
- } else {
- console.log("Don't betting");
- }
- }
- wonstreak = 0;
- } else {
- if(engine.lastGamePlay() == "WON")
- {/*
- Bustabit Average Bot
- Please, donate!
- Bitcoin: 1JwsycUM2AzyBJoLdyfKis9UdFq2V9ynxG
- Email: fobvo@hmamail.com
- */
- wonstreak++;
- if((wonstreak + 1) == cooldownAfterWon)
- {
- waitforxgames = Math.floor(Math.random()*(cooldownForGamesMax-cooldownForGamesMin+1)+cooldownForGamesMin);
- }
- if(games.length >= avarageStreak)
- {
- games = games.slice(-avarageStreak);
- var total = 0;
- for(var i = 0; i < games.length; i++) {
- total += parseInt(games[i]);
- }
- var avarage = (total / games.length).toFixed(0);
- console.log("Avarage of "+avarageStreak+" games: " + (avarage / 100) + "x");
- if(avarage <= ifAvarageBelowBet)
- {
- var amt = 0;/*
- Bustabit Average Bot
- Please, donate!
- Bitcoin: 1JwsycUM2AzyBJoLdyfKis9UdFq2V9ynxG
- Email: fobvo@hmamail.com
- */
- if(useBankroll)
- {
- //When i'm writing this code only God and i understand what i'm doing
- //Now only God does
- amt = (((((engine.getBalance() / 100)) * bankroll) / 100).toFixed(0) * 100);
- } else {
- amt = (baseBet * 100);
- }
- console.log("Betting...");
- lastBet = amt;
- engine.placeBet(amt, autoCashout, false);
- } else {
- console.log("Don't betting");
- }
- } else {
- console.log("Not yet "+avarageStreak+" games (current "+games.length+" games)");
- }
- } else {
- wonstreak = 0;
- console.log("Last game not played");
- if(games.length >= avarageStreak)
- {/*
- Bustabit Average Bot
- Please, donate!
- Bitcoin: 1JwsycUM2AzyBJoLdyfKis9UdFq2V9ynxG
- Email: fobvo@hmamail.com
- */
- games = games.slice(-avarageStreak);
- var total = 0;
- for(var i = 0; i < games.length; i++) {
- total += parseInt(games[i]);
- }
- var avarage = (total / games.length).toFixed(0);
- console.log("Avarage of "+avarageStreak+" games: " + (avarage / 100) + "x");
- if(avarage <= ifAvarageBelowBet)
- {
- var amt = 0;
- if(useBankroll)
- {/*
- Bustabit Average Bot
- Please, donate!
- Bitcoin: 1JwsycUM2AzyBJoLdyfKis9UdFq2V9ynxG
- Email: fobvo@hmamail.com
- */
- //When i'm writing this code only God and i understand what i'm doing
- //Now only God does
- amt = (((((engine.getBalance() / 100)) * bankroll) / 100).toFixed(0) * 100);
- } else {
- amt = (baseBet * 100);
- }
- console.log("Betting...");
- lastBet = amt;
- engine.placeBet(amt, autoCashout, false);
- } else {
- console.log("Don't betting");
- }
- } else {
- console.log("Not yet "+avarageStreak+" games (current "+games.length+" games)");
- }
- }/*
- Bustabit Average Bot
- Please, donate!
- Bitcoin: 1JwsycUM2AzyBJoLdyfKis9UdFq2V9ynxG
- Email: fobvo@hmamail.com
- */
- }
- }
- });
- engine.on('game_crash', function(data) {
- games.push((data.game_crash));
- });/*
- Bustabit Average Bot
- Please, donate!
- Bitcoin: 1JwsycUM2AzyBJoLdyfKis9UdFq2V9ynxG
- Email: fobvo@hmamail.com
- */
Add Comment
Please, Sign In to add comment