bconfig = {
maxBet: 0.0002200,
wait: 1000,
autoexit: 0.00001,
want: 0.000014,
toggleHilo:false,
startbal: 0,
won: 0,
};
hilo = 'hi';
multiplier = 1;
rollDice = function() {
if ($('#double_your_btc_bet_lose').html() !== '') {
$('#double_your_btc_2x').click();
multiplier = 1;
if(bconfig.toggleHilo)toggleHiLo();
} else {
$('#double_your_btc_min').click();
multiplier = 1;
}
if (parseFloat($('#balance').html()) < (parseFloat($('#double_your_btc_stake').val()) * 2) ||
parseFloat($('#double_your_btc_stake').val()) > bconfig.maxBet) {
console.log($('#double_your_btc_min'));
}
if (parseFloat($('#balance').html()) < bconfig.autoexit) {
throw "exit";
}
if (parseFloat($('#balance').html()) > bconfig.want) {
var num = parseFloat($('#balance').html());
bconfig.want = num + 0.00000030;
bconfig.autoexit = num - 0.00000070;
bconfig.won++;
var total = num - bconfig.startbal;
console.log('Setting bconfig want to: ' + bconfig.want)
console.log('Setting autoexit to: ' + bconfig.autoexit)
console.log('Total won: ' + total + ' BTC')
}
$('#double_your_btc_bet_hi_button').click();
setTimeout(rollDice, (multiplier * bconfig.wait) + Math.round(Math.random() * 1000));
};
toggleHiLo = function() {
if (hilo === 'hi') {
hilo = 'hi';
} else {
hilo = 'hi';
}
};
var num = parseFloat($('#balance').html());
bconfig.startbal = num;
bconfig.want = num + 0.00000030;
bconfig.autoexit = num - 0.00000420;
rollDice();
var minValue = parseFloat("2E-8").toFixed(8),
maxLoss = parseFloat("50E-7").toFixed(7),
aimedProfit = parseFloat("80E-6").toFixed(6),
payoutMultiplier = 2,
tryJackpot = 0,
maxOps = 20,
endResult = 0,
ops = 0,
bet = function (value, button, callback) {
var seed = window.document.getElementById('next_client_seed').value;
$.get("?op=double_your_btc&m=" + (button ? "lo" : "hi") + "&stake=" + value + "&multiplier=" + payoutMultiplier + "&jackpot=" + tryJackpot +"&client_seed=" + seed, function (result) {
var splittedResult = result.split(':');
$('#balance').html(splittedResult[3]);
callback(value, button, splittedResult[1] === 'w');
})
},
botStart = function (value, button, result) {
result || value >= maxLoss && 0 !== maxLoss ? (button = !button, newValue = minValue) : newValue = 2 * value;
tmp_a = parseFloat(value).toFixed(8);
endResult += result ? endResult + tmp_a : endResult - tmp_a;
console.log((result ? "+" : "-") + tmp_a);
ops++;
(ops < maxOps || 0 === maxOps) && (endResult < aimedProfit || 0 === aimedProfit) ? bet(newValue, button, botStart) :
(console.log("FreeBitco.in Bot v1.0 finished in " + ops + " operations! Result is: " + endResult))
};
console.log("Starting FreeBitco.in Bot...");
botStart(minValue, !1, !1);