Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Settings
- var baseBet = 10; // In bits
- var baseMultiplier = 1.1; // Target multiplier: 1.10 recommended
- var variableBase = false; // Enable variable mode (very experimental), read streakSecurity.
- var streakSecurity = 15; // 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).
- // 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;
- // Initialization
- console.log('====== Procon\'s BustaBit Bot ======');
- 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 ======');
- console.log('[Bot] Game #' + info.game_id);
- currentGameID = info.game_id;
- if (coolingDown) {
- if (lossStreak == 0) {
- coolingDown = false;
- }
- else {
- lossStreak--;
- console.log('[Bot] Cooling down! Games remaining: ' + lossStreak);
- return;
- }
- }
- if (!firstGame) { // Display data only after first game played.
- console.log('[Stats] Session profit: ' + ((engine.getBalance() - startingBalance) / 100).toFixed(2) + ' bits');
- console.log('[Stats] Profit percentage: ' + (((engine.getBalance() / startingBalance) - 1) * 100).toFixed(2) + '%');
- }
- if (engine.lastGamePlay() == 'LOST' && !firstGame) { // If last game loss:
- lossStreak++;
- var totalLosses = 0; // Total satoshi lost.
- var lastLoss = currentBet; // Store our last bet.
- while (lastLoss >= baseSatoshi) { // Until we get down to base bet, add the previous losses.
- totalLosses += lastLoss;
- lastLoss /= 4;
- }
- if (lossStreak > streakSecurity) { // If we're on a loss streak, wait a few games!
- coolingDown = true;
- return;
- }
- currentBet *= 7; // Then multiply base bet by 4!
- currentMultiplier = 1.00 + (total
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement