Created
September 9, 2014 20:52
-
-
Save nathanlippi/a722d9040d09608ee5e0 to your computer and use it in GitHub Desktop.
BitSplit Bots
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bot_bet_at_beginning_of_jackpot_if_jackpot_is_small = setInterval( | |
function() | |
{ | |
/* Wait for beginning of round */ | |
socket.once("round_new", function() { | |
var amt_satoshis = 500; | |
var amt_btc = to_btc(amt_satoshis); | |
/* Don't bet unless if 'size' is too big */ | |
if(typeof currentStats.size !== "undefined" && currentStats.size >= amt_satoshis) | |
{ | |
return false; | |
} | |
BitSplit.currency.bet(amt_btc, function(err, res) {}); | |
}); | |
}, (1000*60*5 + 15000)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment