0% found this document useful (0 votes)
297 views7 pages

Bitcoin Bot Script Overview

This document contains JavaScript code for an automated betting bot that plays a coin flipping game. The bot initializes variables like the starting balance, bet amount, and round limits. It includes functions for placing bets, tracking stats, and stopping/restarting the bot. The bot binds to events on the game page to detect wins and losses and take appropriate actions like multiplying the bet after a win or placing another bet after a loss.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
297 views7 pages

Bitcoin Bot Script Overview

This document contains JavaScript code for an automated betting bot that plays a coin flipping game. The bot initializes variables like the starting balance, bet amount, and round limits. It includes functions for placing bets, tracking stats, and stopping/restarting the bot. The bot binds to events on the game page to detect wins and losses and take appropriate actions like multiplying the bet after a win or placing another bet after a loss.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
  • JavaScript Code Segment 1
  • JavaScript Code Segment 2
  • JavaScript Code Segment 3
  • JavaScript Code Segment 4
  • JavaScript Code Segment 5
  • JavaScript Code Segment 6
  • JavaScript Code Segment 7

console.

clear();
[Link]('%cIn order to start bot please ' +'%c'+'Click START BOT from top menu
on the website'+'', 'color: #0f0;', 'color: #0f0; font-weight: bold;');
var bversion = 4.22;
var begingbal = 0;
var autorounds = 30; // play 500 rounds only
var handbrake = 0.00000024; // pause when stake reaches 1024 Satoshis
var maxroundsz = 600;
var resetroundsz = 300;
//var stopAt= '?';
var round = 0;
var gameLost=0;
var gameWin=0;
var higherbet=0;
var startbalance = $('#balance').text();
var startValue = '0.00000001', // Don't lower the decimal point more than 4x of
current balance
stopPercentage = 0.004, // In %. I wouldn't recommend going past 0.08
maxWait = 1000, // In milliseconds
stopped = false,
stopBefore = 1, // In minutes default 3
begingbal = 0;
var oldbet= 0.00000001;

var rewardpoints = [Link]("reward_table_box br_0_0_5_5


user_reward_points font_bold")[0].innerHTML;

s = [Link]("user_lottery_tickets").innerHTML;
s = [Link](/(^\s*)|(\s*$)/gi,"");
s = [Link](/[ ]{2,}/gi," ");
s = [Link](/\n /,"\n");
[Link]("user_lottery_tickets").innerHTML = s;

[Link]("free_play_link_li").innerHTML = '<a href="#"


onclick="startGame()" class="free_play_link">START BOT</a>';
var $loButton = $('#double_your_btc_bet_lo_button'),
$hiButton = $('#double_your_btc_bet_hi_button'),
$bal = $('#balance'),
$baBal = $('#bonus_account_balance');
var $loBetbutton = $('#double_your_btc_min');

function higherBet(){
[Link]('Highest bet: '+higherbet);
}

function getBalance() {
mainBal = parseFloat($[Link]());
baBal = parseFloat($[Link]());
return (mainBal + baBal).toFixed(8);
}
begingbal = getBalance();
startbalance = getBalance();
function beginingBal(){
[Link]('BTC Starting Balance: '+ begingbal);
}
function rewardsBal(){
[Link]('%cReward Points Balance: ' +'%c'+rewardpoints+' points', 'color:
#00000;', 'color: #ff9a36; font-weight: bold;');
}
function lotteryBal(){
[Link]('%cLottery Tickets Balance: ' +'%c'+ s+' tickets', 'color:
#00000;', 'color: #005bb6; font-weight: bold;');
}
function donationBTC(){
[Link]('%cDonate BTC for coffee: '
+'%c'+'14Ac7UpQu6gZii4qYSyMCRuziFtGkd277X', 'color: #000000;', 'color: #000000;
font-weight: bold;');
}
function botNAME(){
[Link]('%[Link] Multiply BOT version: ' +'%c'+bversion, 'color:
#000000;', 'color: #ff9a36; font-weight: bold;');
}
function changeBet(bet){
startValue=bet;
}

function forceStop(){
var resetroundsyz = resetroundsz * 40700;
stopGame();
setTimeout(startGame2, resetroundsyz);
}

function timeRemaining(){
timeR = $('title').text();
replText = [Link]("- [Link] - Win free bitcoins every hour!", "");
[Link]('%cTime until free roll: ' +'%c'+replText, 'color: #00000; font-
weight:bold;', 'color: #007a5c;font-weight:bold;');
}

function realtime(time) {
var sec_num =parseInt(time, 10) ; // don't forget the second param
var hours = [Link](sec_num / 3600);
var minutes = [Link]((sec_num - (hours * 3600)) / 60);
var seconds = sec_num - (hours * 3600) - (minutes * 60);

if (hours!=0) {hours = hours+' Hours ';} else{hours = '';}

if (minutes!=0) {minutes = minutes+' Minutes ';}


else{minutes = '';}

if (seconds < 10) {seconds = seconds;}


var time = 'Time played = '+hours+minutes+seconds+' Seconds';
return time;
}
function roundnumb(){
[Link]();
var called = false;
var maxroundx = maxroundsz * 40;
var resetroundsx = resetroundsz * 40;
var resetroundsy = resetroundsz * 40700;
var newbalance= getBalance();
round = round + 1;
var roundf = (maxroundx - round);
var profit = (Number(newbalance) - Number(startbalance)).toFixed(8) ;
if (roundf > 0) {

botNAME();
donationBTC();
timeRemaining();
beginingBal();
rewardsBal();
lotteryBal();
[Link]('Round #' + round + ' / ' +(maxroundsz * 40)+ ' which is near to
'+maxroundsz+' minutes');
}

if (roundf == 0) {
var counter = (resetroundsx);
var resBOTCountdown = setInterval(function(){
[Link]();
botNAME();
donationBTC();
timeRemaining();
beginingBal();
rewardsBal();
lotteryBal();
[Link]('Played #' + round + ' / ' +(maxroundsz * 40)+ ' which is
near to '+maxroundsz+' minutes');
[Link]('Total Profit: ' + profit + ' BTC');
[Link](' ');
[Link](counter+' seconds until restart of BOT');
counter--
if (counter === -1) {
clearInterval(resBOTCountdown);

[Link]("Restarting BOT - Please Wait couple of more seconds so it


wont double start");
donationBTC();
}
}, 1000);
forceStop();
return true;
}
[Link]('Profit:' + profit + ' Bitcoin');
return false;
}

function multiply(){
var current = $('#double_your_btc_stake').val();
var multiply = (current * 2).toFixed(8);
$('#double_your_btc_stake').val(multiply);
[Link]('Bet = ' + multiply);
if( higherbet < multiply ){ higherbet=multiply; }
}
function getRandomWait(){
var wait = [Link]([Link]() * maxWait ) + 300;
//([Link]([Link]() * 800) + 300) ; // avant 100
[Link]('Waiting for ' + wait + 'ms before next bet.');
return wait ;
}
function startGame(limit){
[Link]("free_play_link_li").innerHTML = '<a href="#"
onclick="stopGame()" class="free_play_link">STOP BOT</a>';
starttime=(new Date()).getTime();
startValue = prompt("Number of satoshi you want to bet?", '0.00000001');
MaximumValue = prompt("Set Max Stake Handbrake so bot wont loose more BTC? ",
'0.00000008')
MaximumTimer = prompt("Maximum number of minutes to use the Bot? ", '5');
ResetTimer = prompt("Auto Restart BOT after it stoped in minutes? ", '5');
oldbet=startValue;
handbrake=(MaximumValue / 2);
maxroundsz=MaximumTimer;
resetroundsz=ResetTimer;
round = 0;
gameLost=0;
gameWin=0;
[Link]('Game started!');
reset();
$[Link]('click');
if(limit !== null) {
autorounds=limit;
}
else
{
autorounds=-1;
}
}
function startGame2(limit){
[Link]("free_play_link_li").innerHTML = '<a href="#"
onclick="stopGame()" class="free_play_link">STOP BOT</a>';
starttime=(new Date()).getTime();
stopped = false;
oldbet=startValue;
handbrake=(MaximumValue / 2);
maxroundsz=MaximumTimer;
resetroundsz=ResetTimer;
round = 0;
gameLost=0;
gameWin=0;
[Link]('Game started!');
reset();
$[Link]('click');
if(limit !== null) {
autorounds=limit;
}
else
{
autorounds=-1;
}
}

function stopGame(){
[Link]("free_play_link_li").innerHTML = '<a href="#"
onclick="startGame()" class="free_play_link">START BOT</a>';
botNAME();
donationBTC();
[Link]('Game will stop soon! Let me finish.');
stopped = true;
startValue=oldbet;
handbrake=(MaximumValue / 2);
maxroundsz=MaximumTimer;
resetroundsz=ResetTimer;
}

function reset(){
if( round % 100 === 0 && round !=0)
{
startValue=(startValue * 1.000).toFixed(8); //New bet after 100 round
[Link]('Round ' + round + ': bet change for ' + startValue);
}
$('#double_your_btc_stake').val(startValue);
}
// quick and dirty hack if you have very little bitcoins like 0.0000001
function deexponentize(number){
return number * 1000000;
}
function iHaveEnoughMoni(){
var balance = deexponentize(parseFloat($('#balance').text()));
var current = deexponentize($('#double_your_btc_stake').val());
return ((balance *2)/ 100) * (current*2) > stopPercentage/100;
}
function stopBeforeRedirect(){
var minutes = parseInt($('title').text());
if( minutes < stopBefore )
{
[Link]('Approaching redirect! Stop the game so we don\'t get
redirected while loosing.');
stopGame();
return true;
}
return false;
}

function stopMaxStake(){
var calleds = false;
var maxstake1 = $('#double_your_btc_stake').val();
if( maxstake1 == handbrake )
{
if(!calleds){
[Link]('Handbrake reached! Seting Minimum ammount of bet so we
wont loose any more BTC');
setTimeout(function(){
$[Link]('click');
}, 1000);

calleds = true;
}
else calleds = false;
}
}
// Unbind old shit
$('#double_your_btc_bet_lose').unbind();
$('#double_your_btc_bet_win').unbind();

// Loser
$('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
if( $([Link]).is(':contains("lose")') ){
gameLost = gameLost + 1;
roundnumb();
[Link]('%cWin: ' + gameWin + ' %cLost: ' + gameLost, 'color: #007a5c',
'color: #FF0000');
endtime=(new Date()).getTime();
var time=[Link]((endtime-starttime )/1000);
if( stopBeforeRedirect() ){

return;
}
if( stopMaxStake() ){

return;
}
else

higherBet();
[Link](realtime(time));
[Link]('You LOST!');
multiply();
setTimeout(function(){
$[Link]('click');
}, getRandomWait());
//$[Link]('click');

}
});
// Winner
$('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
if( $([Link]).is(':contains("win")') )
{

gameWin = gameWin + 1;
roundnumb();
[Link]('%cWin: ' + gameWin + ' %cLost: ' + gameLost, 'color: #007a5c',
'color: #FF0000');
endtime=(new Date()).getTime();
var time=[Link]((endtime-starttime )/1000);
[Link](realtime(time));
higherBet();

if( iHaveEnoughMoni() )
{

[Link]('You WON!');
reset();
if( stopped )
{
stopped = false;
return false;
}
}
else
{
[Link]('You WON! ');
}
setTimeout(function(){
$[Link]('click');
}, getRandomWait());
}
});// JavaScript Document

console.clear();
console.log('%cIn order to start bot please ' +'%c'+'Click START BOT from top menu 
on the website'+'', 'col
console.log('%cReward Points Balance: ' +'%c'+rewardpoints+' points', 'color: 
#00000;', 'color: #ff9a36; font-weight: bo
if (roundf > 0) {
        
botNAME();
donationBTC();
timeRemaining();
beginingBal();
rewardsBal();
lotteryBal();  
consol
function startGame(limit){
    document.getElementById("free_play_link_li").innerHTML = '<a href="#" 
onclick="stopGame()" cl
handbrake=(MaximumValue / 2);
    maxroundsz=MaximumTimer;
    resetroundsz=ResetTimer;
}
function reset(){
    if( round
gameLost = gameLost + 1;
        roundnumb();
        console.log('%cWin: ' + gameWin + ' %cLost: ' + gameLost, 'colo
        }, getRandomWait());
    }
});// JavaScript Document

You might also like