·   · 8 posts
  •  · 6 friends

//BitcoinWizards Roulette Bot Version 2.1

//BitcoinWizards Roulette Bot Version 2.1

//Variable you should set

// startBet is how much the bot will bet when it start up or reset.

// 1 = 0.01c

var startBet = 2;


// How many times a side have NOT been seen before starting a betting seasion up!

// (Low bank roll, should run with a HIGH "beforeIShouldBet" number!!!!)

var beforeIShouldBetT = 5;

var beforeIShouldBetCT = 5;

var beforeIShouldBetDice = 65;


var greenIncreaser = 1.1;

var blackRedIncreaser = 2.35;

//EXSTRA COMMANDS

// console.log(wager);  -> print out how much you have wagered this session.



//DO NOT TOUCH ANY THING BELOW THIS LINE!!!!!!!!!!!!!!!!!!!

//Extra Variables

var sinceLastTcoin = 0;

var sinceLastCTcoin = 0;

var sinceLastDiceCoin = 0;


var wager = 0.00;

var highestBet = 0.00;



var lastBet;

var currentBet = startBet;

var activeBet = false;


var currentBank;

var startBank;


var token = 0;


// FIND ALL THE BUTTONS

var btn001;

var btn01;

var btn1;

var btn10;

var btn100;

var btn_clear;

var btn_half;

var btn_2time;


var btn_bet_ct;

var btn_bet_t;

var btn_bet_dice;


var stepToPreform = 0;


function bindbtns() {

    var btn_to_bind = document.getElementsByTagName('button');


    for (var i=0; i<btn_to_bind.length; i++){

        if(btn_to_bind[i].innerText.indexOf('+0.01') > -1){

            btn001 = btn_to_bind[i];

        } else if(btn_to_bind[i].innerText.indexOf(' +0.1 ') > -1){

            btn_to_bind[i].click();

            btn01 = btn_to_bind[i];

        } else if(btn_to_bind[i].innerText.indexOf(' +1 ') > -1){

            btn_to_bind[i].click();

            btn1 = btn_to_bind[i];

        } else if(btn_to_bind[i].innerText.indexOf(' +10 ') > -1){

            btn_to_bind[i].click();

            btn10 = btn_to_bind[i];

        } else if(btn_to_bind[i].innerText.indexOf(' +100 ') > -1){

            btn_to_bind[i].click();

            btn100 = btn_to_bind[i];

        } else if(btn_to_bind[i].innerText.indexOf(' 1/2 ') > -1){

            btn_to_bind[i].click();

            btn_half = btn_to_bind[i];

        } else if(btn_to_bind[i].innerText.indexOf(' x2 ') > -1){

            btn_to_bind[i].click();

            btn_2time = btn_to_bind[i];

        } else if(btn_to_bind[i].innerText.indexOf(' Clear ') > -1){

            btn_to_bind[i].click();

            btn_clear = btn_to_bind[i];

        } else if(btn_to_bind[i].innerText.indexOf(' PLACEBET ') > -1){

            btn_to_bind[i].click();

            btn_clear = btn_to_bind[i];

        }

    }


    var btn2_to_bind = document.getElementsByClassName('bet-btn');

    btn_bet_ct = btn2_to_bind[0];

    btn_bet_dice = btn2_to_bind[1];

    btn_bet_t = btn2_to_bind[2];


}



bindbtns();

//functions used in the interval

/**

 * @return {boolean}

 */

function IsItPosibleToBetNow() {

    var rollingChecker = document.getElementsByClassName('text-sm');

    for(var i=0; i<rollingChecker.length; i++){

        if(rollingChecker[i].innerText.indexOf('ROLLING') > -1) {

            return true;

        }

    }

    return false;

}


var bankFinder = document.getElementsByClassName('whitespace-no-wrap');

startBank = bankFinder[1].innerHTML.valueOf();

/**

 * @return {number}

 */

function CheckIfIShouldBet() {

    UpdateSinceNumbers();

    //What colour should i bet on.


    if (currentBet === startBet) {

        if (beforeIShouldBetDice <= sinceLastDiceCoin) {

            return 3;

        } else if (beforeIShouldBetT <= sinceLastTcoin) {

            return 1;

        } else if (beforeIShouldBetCT <= sinceLastCTcoin) {

            return 2;

        } else {

            return 0;

        }

    } else if (currentBet !== startBet) {

        return token;

    }

}


function PrintProfit() {

    var bankFinder = document.getElementsByClassName('whitespace-no-wrap');

    currentBank = bankFinder[1].innerHTML.valueOf();

    var profit = currentBank - startBank;

    var printbank = profit.toFixed(2);

    console.log("Your current profit is: " + printbank);

}



function UpdateSinceNumbers() {

    var latestNumber = document.getElementsByClassName('flex relative h-24')[0].children[9].innerHTML;



    if (latestNumber.includes("coin-bonus")) {

        sinceLastDiceCoin = 0;

        sinceLastCTcoin++;

        sinceLastTcoin++;

        if (activeBet && token !== 3){

            if (Math.floor(lastBet) < 10){

                currentBet = lastBet * blackRedIncreaser;

            }

        } else if (activeBet && token === 3){

            currentBet = startBet;

        }

    } else if (latestNumber.includes("coin-t")){

        sinceLastTcoin = 0;

        sinceLastDiceCoin++;

        sinceLastCTcoin++;

        if (activeBet && token === 2){

            currentBet = lastBet * blackRedIncreaser;

        } else if (activeBet && token === 3){

            currentBet = lastBet * greenIncreaser;

        } else if (activeBet && token === 1){

            currentBet = startBet;

        }

    } else if (latestNumber.includes("coin-ct")) {

        sinceLastCTcoin = 0;

        sinceLastDiceCoin++;

        sinceLastTcoin++;

        if (activeBet && token === 1){

            currentBet = lastBet * blackRedIncreaser;

        } else if (activeBet && token === 3){

            currentBet = lastBet * greenIncreaser;

        } else if (activeBet && token === 2){

            currentBet = startBet;

        }

    }



    console.log("since last T: " + sinceLastTcoin);

    console.log("since last CT: " + sinceLastCTcoin);

    console.log("since last Dice: " + sinceLastDiceCoin);


}


function PlaceBet() {

    btn_clear.click();

    for (var i = 0; i < Math.floor(currentBet); i++){

        btn001.click();

    }


    var bettingAmountInRealNumber = ((Math.floor(currentBet))/100);

    var bettingAmountInRealNumber2 = bettingAmountInRealNumber.toFixed(2);


    var c = (wager + bettingAmountInRealNumber);

    wager = c;


    if (currentBet > highestBet) {highestBet = currentBet;}


    if (token === 1){

        console.log("Betting " + bettingAmountInRealNumber2 + " on T");

        btn_bet_t.click();

        if (currentBet > 10) {

            btn_clear.click();

            for (var i = 0; i < Math.floor(Math.floor(currentBet)/10); i++){

                btn001.click();

            }

            btn_bet_dice.click();

        }

    } else if (token === 2){

        console.log("Betting " + bettingAmountInRealNumber2 + " on CT");

        btn_bet_ct.click();

        if (currentBet > 10) {

            btn_clear.click();

            for (var i = 0; i < Math.floor(Math.floor(currentBet)/10); i++){

                btn001.click();

            }

            btn_bet_dice.click();

        }

    } else if (token === 3){

        console.log("Betting " + bettingAmountInRealNumber2 + " on DICE");

        btn_bet_dice.click();

    }


    lastBet = currentBet;


}


setInterval(function(){


    //If its posible to bet now.

    if(stepToPreform === 0) {

        console.log("Step 0 - Waiting to be able to place a bet");

        if(IsItPosibleToBetNow()){

            if (activeBet){

                PrintProfit();

            }

            stepToPreform = 1;

        }

    }

    else if (stepToPreform === 1) {

        console.log("Step 1 - Checking if it should bet");

        var token2 = CheckIfIShouldBet();

        if (token2 > 0) {

            stepToPreform = 3;

            token = token2;

        } else {

            lastBet = startBet;

            activeBet = false;

            stepToPreform = 2;

        }

    }

    else if (stepToPreform === 2) {

        console.log("Step 2 - Should wait for longer streaks, go back to step 0");

        if(!IsItPosibleToBetNow()){

            stepToPreform = 0;

        }

    }

    else if (stepToPreform === 3) {

        console.log("Step 3 - Should place a bet");

        PlaceBet();

        stepToPreform = 4;


    }

    else if (stepToPreform === 4) {

        console.log("Step 4 - Waiting for bet to end");

        activeBet = true;

        if(!IsItPosibleToBetNow()){

            stepToPreform = 0;

        }

    }



},1500);


  • 184
Comments (0)
Info
Category:
Created:
Updated: