bustapaladin

Bustabit Average Bot

Jul 23rd, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. Bustabit Average Bot
  3. Please, donate!
  4.  
  5. Bitcoin: 1JwsycUM2AzyBJoLdyfKis9UdFq2V9ynxG
  6. Email: fobvo@hmamail.com
  7.  
  8. */
  9.  
  10.  
  11. var avarageStreak = 4; //Get average of x streaks
  12. var ifAvarageBelowBet = 200; //150 = 1.50x   If average of y streaks is below x, then bet
  13. var autoCashout = 150; //200 = 2.00x   Auto cashout
  14. /*
  15. Bustabit Average Bot
  16. Please, donate!
  17.  
  18. Bitcoin: 1JwsycUM2AzyBJoLdyfKis9UdFq2V9ynxG
  19. Email: fobvo@hmamail.com
  20.  
  21. */
  22. var baseBet = 1000; //bits to bet
  23. var bankroll = 10; //% percent of bankroll to bet
  24. var useBankroll = true; //false = use baseBet    true = use bankroll
  25.  
  26. var cooldownAfterWon = 2; //cooldown if x times won streak
  27. var cooldownForGamesMin = 2; //cooldown for minimum x games
  28. var cooldownForGamesMax = 3; //cooldown for maximum x games
  29.  
  30. var martingale = true; //martingale if lost
  31.  
  32.  
  33.  
  34. var games = []; //If you dont want to wait "avarageStreak" games, change this like;
  35.                 // ["150","140","298","565"] //(last 4 games)
  36.                 // If you want to wait for "avarageStreak" games, leave blank.
  37.                
  38. /*
  39. Bustabit Average Bot
  40. Please, donate!
  41.  
  42. Bitcoin: 1JwsycUM2AzyBJoLdyfKis9UdFq2V9ynxG
  43. Email: fobvo@hmamail.com
  44.  
  45. */
  46. //////////////////////////////
  47. //Do not edit below or script may won't work
  48. //////////////////////////////
  49.  
  50.  
  51. var lastGameLost = false;
  52. var lastBet = 0;
  53. var waitforxgames = 0;
  54. var wonstreak = 0;
  55. var lastwon = false;
  56. var martingaleWaiting = true;
  57.  
  58. engine.on('game_starting', function(info) {
  59. if(waitforxgames > 0)
  60. {
  61. waitforxgames--;
  62. console.log(waitforxgames + " games left for cooldown");
  63. } else {
  64.     if(engine.lastGamePlay() == "LOST")
  65.     {
  66.     if(martingale)
  67.     {
  68. if(!martingaleWaiting)
  69. {
  70.         lastBet = lastBet * 2;
  71.         console.log("Last game lost, doubling bet to " + (lastBet / 100).toFixed(0));
  72.         amt = lastBet;
  73.         martingaleWaiting = true;
  74.         engine.placeBet(amt, autoCashout, false);
  75. } else {
  76.         console.log("Martingale cooldown");
  77.         martingaleWaiting = false;
  78. }/*
  79. Bustabit Average Bot
  80. Please, donate!
  81.  
  82. Bitcoin: 1JwsycUM2AzyBJoLdyfKis9UdFq2V9ynxG
  83. Email: fobvo@hmamail.com
  84.  
  85. */
  86.         } else {
  87.         console.log("Last game lost");
  88.         games = games.slice(-avarageStreak);
  89.         var total = 0;
  90.         for(var i = 0; i < games.length; i++) {
  91.             total += parseInt(games[i]);
  92.         }
  93.         var avarage = (total / games.length).toFixed(0);
  94.         console.log("Avarage of "+avarageStreak+" games: " + (avarage / 100) + "x");
  95.         if(avarage <= ifAvarageBelowBet)
  96.         {
  97.         var amt = 0;
  98.         if(useBankroll)
  99.         {
  100.             //When i'm writing this code only God and i understand what i'm doing
  101.             //Now only God does
  102.             amt = (((((engine.getBalance() / 100)) * bankroll) / 100).toFixed(0) * 100);
  103.         } else {
  104.             amt = (baseBet * 100);
  105.         }
  106.             console.log("Betting...");
  107.             lastBet = amt;
  108.             engine.placeBet(amt, autoCashout, false);
  109.         } else {
  110.             console.log("Don't betting");
  111.         }
  112.         }
  113.         wonstreak = 0;
  114.     } else {
  115.     if(engine.lastGamePlay() == "WON")
  116.     {/*
  117. Bustabit Average Bot
  118. Please, donate!
  119.  
  120. Bitcoin: 1JwsycUM2AzyBJoLdyfKis9UdFq2V9ynxG
  121. Email: fobvo@hmamail.com
  122.  
  123. */
  124.         wonstreak++;
  125.         if((wonstreak + 1) == cooldownAfterWon)
  126.         {
  127.             waitforxgames = Math.floor(Math.random()*(cooldownForGamesMax-cooldownForGamesMin+1)+cooldownForGamesMin);
  128.         }
  129.         if(games.length >= avarageStreak)
  130.     {
  131.         games = games.slice(-avarageStreak);
  132.         var total = 0;
  133.         for(var i = 0; i < games.length; i++) {
  134.             total += parseInt(games[i]);
  135.         }
  136.         var avarage = (total / games.length).toFixed(0);
  137.         console.log("Avarage of "+avarageStreak+" games: " + (avarage / 100) + "x");
  138.         if(avarage <= ifAvarageBelowBet)
  139.         {
  140.         var amt = 0;/*
  141. Bustabit Average Bot
  142. Please, donate!
  143.  
  144. Bitcoin: 1JwsycUM2AzyBJoLdyfKis9UdFq2V9ynxG
  145. Email: fobvo@hmamail.com
  146.  
  147. */
  148.         if(useBankroll)
  149.         {
  150.             //When i'm writing this code only God and i understand what i'm doing
  151.             //Now only God does
  152.             amt = (((((engine.getBalance() / 100)) * bankroll) / 100).toFixed(0) * 100);
  153.         } else {
  154.             amt = (baseBet * 100);
  155.         }
  156.             console.log("Betting...");
  157.             lastBet = amt;
  158.             engine.placeBet(amt, autoCashout, false);
  159.         } else {
  160.             console.log("Don't betting");
  161.         }
  162.     } else {
  163.         console.log("Not yet "+avarageStreak+" games (current "+games.length+" games)");
  164.     }
  165.     } else {
  166.     wonstreak = 0;
  167.     console.log("Last game not played");
  168.     if(games.length >= avarageStreak)
  169.     {/*
  170. Bustabit Average Bot
  171. Please, donate!
  172.  
  173. Bitcoin: 1JwsycUM2AzyBJoLdyfKis9UdFq2V9ynxG
  174. Email: fobvo@hmamail.com
  175.  
  176. */
  177.         games = games.slice(-avarageStreak);
  178.         var total = 0;
  179.         for(var i = 0; i < games.length; i++) {
  180.             total += parseInt(games[i]);
  181.         }
  182.         var avarage = (total / games.length).toFixed(0);
  183.         console.log("Avarage of "+avarageStreak+" games: " + (avarage / 100) + "x");
  184.         if(avarage <= ifAvarageBelowBet)
  185.         {
  186.         var amt = 0;
  187.         if(useBankroll)
  188.         {/*
  189. Bustabit Average Bot
  190. Please, donate!
  191.  
  192. Bitcoin: 1JwsycUM2AzyBJoLdyfKis9UdFq2V9ynxG
  193. Email: fobvo@hmamail.com
  194.  
  195. */
  196.             //When i'm writing this code only God and i understand what i'm doing
  197.             //Now only God does
  198.             amt = (((((engine.getBalance() / 100)) * bankroll) / 100).toFixed(0) * 100);
  199.         } else {
  200.             amt = (baseBet * 100);
  201.         }
  202.             console.log("Betting...");
  203.             lastBet = amt;
  204.             engine.placeBet(amt, autoCashout, false);
  205.         } else {
  206.             console.log("Don't betting");
  207.         }
  208.     } else {
  209.         console.log("Not yet "+avarageStreak+" games (current "+games.length+" games)");
  210.     }
  211.     }/*
  212. Bustabit Average Bot
  213. Please, donate!
  214.  
  215. Bitcoin: 1JwsycUM2AzyBJoLdyfKis9UdFq2V9ynxG
  216. Email: fobvo@hmamail.com
  217.  
  218. */
  219.     }
  220.     }
  221. });
  222.  
  223. engine.on('game_crash', function(data) {
  224.     games.push((data.game_crash));
  225. });/*
  226. Bustabit Average Bot
  227. Please, donate!
  228.  
  229. Bitcoin: 1JwsycUM2AzyBJoLdyfKis9UdFq2V9ynxG
  230. Email: fobvo@hmamail.com
  231.  
  232. */
Add Comment
Please, Sign In to add comment