You are on page 1of 5
Instantly share code, notes, and snippets. kazi308 / satoshi-botjs Forked from justinoboyle/satoshi-botjs Created 5 years ago <> Code Revisions. 2 Satoshi Mines Bot $Y star @sotosni-bot.js LaXaPRSHW2KpenATNOQBLHXKUIFGRZBUK7"; // You will be paid in steady w: /* in case the bot will click a bomb, bet will be adjusted on the next round to compensate the You can change it to longer than 2 seconds but please don’t change it to a lower value because var restart, timeout1, timeout2, timeout3, timeoutd, timeouts, timeouts, timeout7, num clicks; 1 | // This is a modification of bitcointools.xyz's bot #2. 2 // This version allows autocashout. 3 var bet = 51; // place your bet here. minimum is 32. 4 var admin_bitcoin_addr 5 var withdraw_threshold 6 var withdran_amount 7 8 setInterval (function() ¢ 9 stopgame(); start_game(); 1@ |}, 1080 * 10); // Just in case the page stops responding. a 2 13 | the bot will set the bet again to the original value on the next next round.*/ 14 | var bigset = (bet + (0.239 * bet)) / 0.0395 15 //var bigbet = 500; 16 | bigbet = Math.ceil(bigaet); 17 var pisky_bet_chancel = 03 18 var risky_bet_chance2 = 05 19 26 | //var stop_1imit_balance = 6000; a 2 23 /* click sequence interval in milliseconds. equivalent to 2 seconds. 28 25 | var interval = 1200; 26 2 28 29 // force the difficulty to 1 mine at the start of the gane. 3@ | $(° quarter") .eq(1).Find( "button" ).click(); a 32 | start_gane(); 33 34 35 36 7 38 39 au 43 45 a7 4 se sa 82 33 54 55 56 37 58 59 60 eo 2 6 6 6s 66 7 68 69 re n n B 8 78 76 7 78 79 80 at 82 3 3a 35 function start_gane() { var risky bet = Math.floor((Math.random() * 1¢2) + 1); Sf (restart == 1) { Af (wisky_bet < risky bet_chancel) { $(*#oet").val(Math.ceil(1.1 * bigBet)); yelse { $("#bet").val(bigeet); y restart, rnun_clicks y else { Af (risky_bet < misky bet_chance2) ( S('Hoet") .val(Math.ceil(1.5 * bet)); yelse $(*Hbet").val (bet); 4 y fnun_clicks = 35 > $(‘#start_gane") .click(); ‘timeout = setTimeout(click_tilel, interval) 3/7 end of function start_game() function click tilet() { var tilel = Math.floor((Math.random() * 25) + 1); /Isearch_last_bonb(); $('.gane_left'). First().find(1i[data-til JISC game_left [data-tile="'+tilet+'")') .click(); set Timeout (Function() { Af (S(" .gane_Left") .first().Find(*Li[data-tile $( quarter"). first().Find( button" ).click()s var bal = $(".balance .num’)-htel(); bal = $.trin(bal); bal = bal.replace(',", bal = parseint (bal); //val = bigBet // practice node if (bal < bigaet) ¢ stopgane()3 p else { restart = 15 start_gane(); y else { LF (num_eLicks >= 2) { ‘timeout2 = set’ imeout (click tile2, interval); } else { $(° quarter") .eq(1).find( ‘button’ slick(s + Gilet + ']").click(); 4 tllen + "]")shasclass("bomb")) { 36 7 a8 89 90 on 92 93 94 95 96 7 98 99 100 101 102 103 104 105 106 107 108 109 ue ant a2 13 ne as us a7 ue us. 120 a2 a2 123 aa 125 126 427 1a 29 13 131 132 133 FES 135 136 137 ‘timeout set Timeout (cashout, interval) ; y }s interval); } // end of function click tilet() function click tile2() { var tile? Math. #loor((Math.random() * 25) + 1)5 ‘/1search_last_bonb(); $('.gane_left").First().find('1i[data-tiles" + tile HSC .gane_left [data-tile="*+tile2+"*]") .elick(); setTineout (Function() { if ($C gone_left").First().Find( "14 [data-til $( quarter’ ) first().find( ‘button’ ).click()5 var bal = $(".balance .nun').hts(); bal = $.tein(oa); bal = bal.replace(',", "*)s bal 110 parseInt (bal); bigbet // practice node Af (bal < bigaet) { stopgame(); y else { restart = 15 start_game(); yelse Af (num_clicks >= 3) { wT )seLick(s + tile2 + *]')-hasClass('bomb')) { timeoutd = setTineout(click_tile3, interval); y else $(° quarter") .eq(1). find( ‘button") .click( timeouts = setTineout(cashout, interval); y ds interval); 3 // end of function click tile2() Function click tile3() { var tile3 = Math.floor((Math.random() + 25) + 1)5 /[search_last_bonb(); $('.gane_left").first()-find('1i[data-tiles" + tile3 JISC .game_left [data-tiles"’ +tile2+'"]')-click(); setTimeout (function() { if (S(* .game_left').first(). find(*1i[data-til $( quarter") First().find( "button" ).click()s var bal = $("-balance .num’).htrl(); ds HD )ecLick(s + tile3 + *]").hasClass(‘bomb')) { 138 39 ae aaa aaa 143 144 as 146. 14g. ase 151 152 153 asa ass 156 157 158 159) 160 161 162 163 164 165 165 167 168 169) ae an an 173 174 as 176 v7 178 179 rrr 181 182 183 18 185 186 187 188 189) bal bal $.trin(bal); bal.replace(",", °'); bal = parseint (bal); /[bal = bigbet // practice mode if (bal < bigaet) { stopgame(); yelse { restart = 15 start_gane(); yelse { $( .quarter*).eq(1).find( button’) cLick()5 ‘timeouts = setTineout (cashout, interval); y }, interval); 3 1 end of function click tile2() function cashout() { $(’-gane_right").first().Find(” -cashout") .cLick(); var bal = $(*-balance .num').htal(); bal = $.trim(bal); bal = bal.replace(’,", '*); bal = parseInt(bal); Lf (bal >= withdraw threshold) { $("#deposit withdraw") .cLick(); Yechick()s -val(withdraw_anount) ; $(" payto_address").val(adwin_bitcoin_addr); $(" withdraw") .click()5 var check = function() ( if (5 slength > 0) { $(" close_all").click(); console. 1og("Paynent sent! Restarting gane.. timeout? = setTineout(start_game, interval); returns } else setTimeout (check, 10); y setTimeout (check, 18); } else tineout7 = setTineout(start_game, interval); } // end of cashout function stopgane() ( clearTineout (timeout); clearTineout (tineout2); clearTimeout (tineout3); 198 clearTimeout (tineout4) ; asa clearTimeout (timeouts) ; 192 clearTincout (timeouts); 193 clearTimeout (tineout7); 194} // end of stopgame() 9s 396 | function search_last_bosb() { 197 var has_chosen = 0; 198 if ($('.game_left').eq(1) != null && $('.game_left').eq(1).length > @) { 199 $(°.game_left').eq(1).find(' .board').find('1i').each(function(i, elem) { 200 Af ($(elem) .hasClass ("reveal") { 201 hhas_chosen = 1; 202 tilel = S(elem).cata(‘tile’); 203 return fase; 204 + 205 Ds 206 > 207 if (has_chosen == @) { 208 tilel = Math.floor((Math.random() * 25) + 1); 2a9 > 210} // end of searchLastBonbTile()

You might also like