Skip to content

Instantly share code, notes, and snippets.

@RHavar
Created August 29, 2015 13:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save RHavar/e608bb389a5cfe2f01e1 to your computer and use it in GitHub Desktop.
Save RHavar/e608bb389a5cfe2f01e1 to your computer and use it in GitHub Desktop.
/*¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|
// Bustabit Bonus Sniper v0.2R8 - Made by http://dexontech.net/ |
//___________________________________________________________________|
//
// Bot that will 'snipe' those bonus for you.
// It will automatically cashout right after the biggest
// bet during the round. To snipe that bonus!
//
// Have fun!
//
// My address: 16gj85L3364SGdcUG5tb2wJkhG8UVF5r6j
*/
var StartingBet = 100, //(INTEGER) Initial bet that'll snipe the bonus. Note: 100 = 1 bit.
AutoCashout = 2000, //(INTEGER) Will Cashout at 20x if the highest bet didn't cashed out yet.
IncreaseOnLoss = 1.30; //(FLOAT) Will increase +1.30x of the last bet if lost.
//--------> EDIT OVER THIS LINE <--------
var lastBet = 0;
engine.on('game_starting', function(info) {
var bet = 0;
console.clear();
console.log("Locking target...")
if(engine.lastGamePlay() == "LOST") bet = (lastBet/100) * IncreaseOnLoss;
else bet = StartingBet / 100;
lastBet = bet*100;
bet = Math.round(bet)*100;
engine.placeBet(bet, AutoCashout, function(){ });
});
var bets = [];
var highestBetUser = null;
engine.on('game_started', function(data) {
if(engine.lastGamePlayed()) bets = []; // Reset bets
for(var i=0; i<Object.keys(data).length; i++){
bets.push(data[Object.keys(data)[i]].bet); // Get all bets
}
for(var i=0; i<Object.keys(data).length; i++){
if(data[Object.keys(data)[i]].bet == bets.max()){
highestBetUser = data[Object.keys(data)[i]].username; // Get the highest one!
}
}
console.log("Target acquired! ("+highestBetUser+")");
});
engine.on('cashed_out', function(data) {
if(data.username == highestBetUser){
setTimeout(function(){ engine.cashOut(); }, 1);
console.log("Target hit!");
}
});
// Some use less function:
Array.prototype.max = function() {
return Math.max.apply(null, this);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment