Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Bustabit BlackShadow Cooldown Bot with Spiocha Pause
- // By: BlackShadow & MartinG
- // Version 2
- /******************/
- // Settings
- var baseBet = 500; // In bits
- var baseMultiplier = 1.05; // Target multiplier: 1.13 recommended
- var variableBase = false; // Enable variable mode (very experimental), read streakSecurity.
- var streakSecurity = 10; // Number of loss-streak you wanna be safe for. Increasing this massively reduces the variableBase calculated. (1-loss = 20%, 2-loss = 5%, 3-loss = 1.25% of your maximum balance). Recommended: 2+
- var maximumBet = 999999; // Maximum bet the bot will do (in bits).
- // Pause settings
- var pauseThreshold = 11; // when game crashes above this, betting pauses
- var continueThreshold = 2; // when paused and the game crashes above this, betting resumes
- var pauseAfterNLosses = 5;
- var pauseForMGames = 2;
- /******************/
- pauseThreshold = Math.round(pauseThreshold * 100);
- continueThreshold = Math.round(continueThreshold * 100);
- // Variables - Do not touch!
- var baseSatoshi = baseBet * 100; // Calculated
- var currentBet = baseSatoshi;
- var currentMultiplier = baseMultiplier;
- var currentGameID = -1;
- var firstGame = true;
- var lossStreak = 0;
- var coolingDown = false;
- var lostLast = false;
- // Pause Variables
- var currentGameData;
- var lastCrash = (continueThreshold + pauseThreshold)/2;
- var paused = false;
- var pauseLossStreak = 0;
- var pausedFor = 0;
- // Initialization
- console.log('====== Procon\'s BustaBit Bot with Pause ======');
- console.log('My username is: ' + engine.getUsername());
- console.log('Starting balance: ' + (engine.getBalance() / 100).toFixed(2) + ' bits');
- var startingBalance = engine.getBalance();
- if (variableBase) {
- console.warn('[WARN] Variable mode is enabled and not fully tested. Bot is resillient to ' + streakSecurity + '-loss streaks.');
- }
- // On a game starting, place the bet.
- engine.on('game_starting', function(info) {
- console.log('====== New Game ======');
- /********************/
- if(lastCrash >= pauseThreshold) {
- paused = true;
- console.log("Pausing Betting");
- return;
- }
- if(paused) {
- if(lastCrash >= continueThreshold) {
- console.log("Continuing Betting");
- lastCrash = (continueThreshold + pauseThreshold)/2;
- paused = false;
- } else {
- console.log("Betting Is Paused");
- return;
- }
- }
- /********************/
- if(pausedFor > 0) {
- pausedFor++;
- if(pausedFor <= pauseForMGames) {
- console.log("Paused " + pausedFor + " of " + pauseForMGames + " games");
- return;
- } else {
- console.log("Resuming");
- pausedFor = 0;
- pauseLossStreak = 0;
- }
- }
- if(pauseLossStreak >= pauseAfterNLosses) {
- console.log("Pausing for 1 of " + pauseForMGames + " games");
- pausedFor = 1;
- return;
- }
Add Comment
Please, Sign In to add comment