Skip to content

Instantly share code, notes, and snippets.

@nathanlippi
Created September 9, 2014 20:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nathanlippi/a722d9040d09608ee5e0 to your computer and use it in GitHub Desktop.
Save nathanlippi/a722d9040d09608ee5e0 to your computer and use it in GitHub Desktop.
BitSplit Bots
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