View difference between Paste ID: LAm9Kv4z and Nm1jSSh7
SHOW: | | - or go back to the newest paste.
1
//Register at http://freedoge.co.in/?r=1345155 and test the bot //
2
// version 4.26
3
console.clear();
4
console.log('%cIn order to start bot please ' +'%c'+'Click START BOT from top menu on the website'+'', 'color: #00000;', 'color: #00000; font-weight: bold;');
5
var bversion = 4.22;
6
var begingbal = $('#balance').text();
7
var startbalance = 0;
8
var autorounds = 30;         // play 500 rounds only
9
var handbrake  = 0.15200000;  // pause when stake reaches 1024 Satoshis
10
var maxroundsz = 600;
11
var resetroundsz = 300;
12
//var stopAt= '?';
13
var round = 0;
14
var gameLost=0;
15
var gameWin=0;
16
var higherbet=0;
17
startbalance = $('#balance').text();
18
var startValue = '0.03800000', // Don't lower the decimal point more than 4x of current balance
19
        stopPercentage = 0.004, // In %. I wouldn't recommend going past 0.08
20
        maxWait = 1000, // In milliseconds
21
        stopped = false,
22
        stopBefore = 1; // In minutes default 3
23
var oldbet= 0.03800000;    
24
25
//var rewardpoints = document.getElementsByClassName("reward_table_box br_0_0_5_5 user_reward_points font_bold")[0].innerHTML;
26
27
//s = document.getElementById("user_lottery_tickets").innerHTML;
28
//s = s.replace(/(^\s*)|(\s*$)/gi,"");
29
//s = s.replace(/[ ]{2,}/gi," ");
30
//s = s.replace(/\n /,"\n");
31
//document.getElementById("user_lottery_tickets").innerHTML = s;
32
33
34
35
36
document.getElementById("free_play_link_li").innerHTML = '<a href="#" onclick="startGame()" class="free_play_link">START BOT</a>';
37
var $loButton = $('#double_your_doge_bet_lo_button'),
38
                $hiButton = $('#double_your_doge_bet_hi_button');
39
var $loBetbutton = $('#double_your_doge_min');
40
function higherBet(){
41
console.log('Highest bet: '+higherbet);
42
} 
43
function beginingBal(){
44
console.log('DOGE Starting Balance: '+begingbal);
45
} 
46
//function rewardsBal(){
47
//console.log('%cReward Points Balance: ' +'%c'+rewardpoints+' points', 'color: #00000;', 'color: #ff9a36; font-weight: bold;');
48
//}
49
//function lotteryBal(){
50
//console.log('%cLottery Tickets Balance: ' +'%c'+ s+' tickets', 'color: #00000;', 'color: #005bb6; font-weight: bold;');
51
//}
52
function donationBTC(){
53-
console.log('%cDonate DOGE for coffee: ' +'%c'+'D5P5WZZkNAsD9S1G7QhNFYgwgX3hLyWkj4', 'color: #000000;', 'color: #000000; font-weight: bold;');
53+
console.log('%cDonate DOGE for coffee: ' +'%c'+'DJQAEC5fSXjCBHFzqg9LESXUDve6bFE6Tk', 'color: #000000;', 'color: #000000; font-weight: bold;');
54
}
55
function botNAME(){
56
console.log('%cFreedoge.co.in Multiply BOT version: ' +'%c'+bversion, 'color: #000000;', 'color: #ff9a36; font-weight: bold;');
57
}
58
function changeBet(bet){
59
startValue=bet;
60
}
61
62
function forceStop(){
63
var resetroundsyz = resetroundsz * 40700;
64
stopGame();                  
65
 setTimeout(startGame2, resetroundsyz);    
66
}
67
68
function timeRemaining(){
69
timeR = $('title').text();
70
replText = timeR.replace("- FreeDoge.co.in - Win free dogecoins every hour!", "");
71
console.log('%cTime until free roll: ' +'%c'+replText, 'color: #00000; font-weight:bold;', 'color: #007a5c;font-weight:bold;');
72
}
73
74
function realtime(time) {
75
    var sec_num =parseInt(time, 10) ; // don't forget the second param
76
    var hours   = Math.floor(sec_num / 3600);
77
    var minutes = Math.floor((sec_num - (hours * 3600)) / 60);
78
    var seconds = sec_num - (hours * 3600) - (minutes * 60);
79
80
    if (hours!=0) {hours   = hours+' Hours ';}      else{hours   = '';}
81
82
    if (minutes!=0) {minutes = minutes+' Minutes ';}
83
else{minutes   = '';}
84
85
86
    if (seconds < 10) {seconds = seconds;}
87
    var time    = 'Time played = '+hours+minutes+seconds+' Seconds';
88
    return time;
89
}
90
function roundnumb(){
91
92
console.clear();
93
var called = false;
94
var maxroundx = maxroundsz * 40;
95
var resetroundsx = resetroundsz * 40;
96
var resetroundsy = resetroundsz * 40700;
97
var newbalance= $('#balance').text()
98
round = round + 1;
99
var roundf = (maxroundx - round);
100
var profit = (Number(newbalance) - Number(startbalance)).toFixed(8) ;
101
102
103
if (roundf > 0) {
104
          
105
      botNAME();
106
      donationBTC();
107
      timeRemaining();
108
      beginingBal();
109
//      rewardsBal();
110
//      lotteryBal();  
111
        console.log('Round #' + round + ' / ' +(maxroundsz * 40)+ ' which is near to '+maxroundsz+' minutes');
112
    }
113
    
114
115
116
if (roundf == 0)
117
    { 
118
    var counter = (resetroundsx);
119
                  var resBOTCountdown = setInterval(function(){
120
                  console.clear();
121
                  
122
      botNAME();
123
      donationBTC();
124
      timeRemaining();
125
      beginingBal();
126
//      rewardsBal();
127
//      lotteryBal();  
128
        console.log('Played #' + round + ' / ' +(maxroundsz * 40)+ ' which is near to '+maxroundsz+' minutes');
129
        console.log('Total Profit: ' + profit + ' DOGE');
130
                  console.log(' ');
131
                  console.log(counter+' seconds until restart of BOT');
132
                  counter--
133
                    if (counter === -1) {
134
                    clearInterval(resBOTCountdown);
135
                    
136
                    console.log("Restarting BOT - Please Wait couple of more seconds so it wont double start");
137
                    donationBTC();
138
                    }
139
                    }, 1000); 
140
             forceStop();
141
            return true;
142
143
144
}
145
console.log('Profit:' + profit + ' DOGE');
146
return false;
147
    
148
    
149
}
150
151
152
function multiply(){
153
                var current = $('#double_your_doge_stake').val();
154
                var multiply = (current * 2).toFixed(8);
155
                $('#double_your_doge_stake').val(multiply);
156
                console.log('Bet = ' + multiply);    
157
                    if( higherbet < multiply ){ higherbet=multiply; }
158
}
159
function getRandomWait(){
160
        var wait = Math.floor(Math.random() * maxWait ) + 300; //(Math.floor(Math.random() * 800) + 300)  ; // avant 100
161
        console.log('Waiting for ' + wait + 'ms before next bet.');
162
        return wait ;
163
}
164
function startGame(limit){
165
document.getElementById("free_play_link_li").innerHTML = '<a href="#" onclick="stopGame()" class="free_play_link" style="color:#00CCFF;">STOP BOT</a>';
166
starttime=(new Date()).getTime();
167
startValue = prompt("Number of DOGE you want to bet?", '0.03800000');
168
MaximumValue = prompt("Set Max Stake Handbrake so bot wont loose more DOGE? ", '0.15200000')
169
MaximumTimer = prompt("Maximum number of minutes to use the Bot? ", '5');
170
ResetTimer = prompt("Auto Restart BOT after it stoped in minutes? ", '5');
171
oldbet=startValue;
172
handbrake=(MaximumValue / 2);
173
maxroundsz=MaximumTimer;
174
resetroundsz=ResetTimer;
175
    round = 0;
176
    gameLost=0;
177
    gameWin=0;
178
        console.log('Game started!');
179
        reset();
180
        $loButton.trigger('click');
181
        if(limit !== null) {
182
        autorounds=limit;
183
        }
184
        else
185
        {
186
        autorounds=-1;
187
        }
188
}
189
function startGame2(limit){
190
document.getElementById("free_play_link_li").innerHTML = '<a href="#" onclick="stopGame()" class="free_play_link" style="color:#00CCFF;">STOP BOT</a>';
191
starttime=(new Date()).getTime();
192
stopped = false;
193
oldbet=startValue;
194
handbrake=(MaximumValue / 2);
195
maxroundsz=MaximumTimer;
196
resetroundsz=ResetTimer;
197
    round = 0;
198
    gameLost=0;
199
    gameWin=0;
200
        console.log('Game started!');
201
        reset();
202
        $loButton.trigger('click');
203
        if(limit !== null) {
204
        autorounds=limit;
205
        }
206
        else
207
        {
208
        autorounds=-1;
209
        }
210
}
211
212
function stopGame(){
213
document.getElementById("free_play_link_li").innerHTML = '<a href="#" onclick="startGame()" class="free_play_link" style="color:#00CCFF;">START BOT</a>';
214
        botNAME();
215
        donationBTC();
216
        console.log('Game will stop soon! Let me finish.');
217
        stopped = true;
218
startValue=oldbet;
219
handbrake=(MaximumValue / 2);
220
maxroundsz=MaximumTimer;
221
resetroundsz=ResetTimer;
222
}
223
224
function reset(){
225
    if( round % 100 === 0 && round !=0)
226
    {
227
    startValue=(startValue * 1.000).toFixed(8); //New bet after 100 round
228
    console.log('Round ' + round + ': bet change for ' + startValue);
229
    }
230
        $('#double_your_doge_stake').val(startValue);
231
}
232
// quick and dirty hack if you have very little bitcoins like 0.0000001
233
function deexponentize(number){
234
        return number * 1000000;
235
}
236
function iHaveEnoughMoni(){
237
        var balance = deexponentize(parseFloat($('#balance').text()));
238
        var current = deexponentize($('#double_your_doge_stake').val());
239
        return ((balance *2)/ 100) * (current*2) > stopPercentage/100;
240
}
241
function stopBeforeRedirect(){
242
        var minutes = parseInt($('title').text());
243
        if( minutes < stopBefore )
244
        {
245
                console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
246
                stopGame();
247
                return true;
248
        }
249
        return false;
250
}
251
252
function stopMaxStake(){
253
var calleds = false;
254
        var maxstake1 = $('#double_your_doge_stake').val();
255
       if( maxstake1 == handbrake )
256
       {
257
              if(!calleds){
258
                                console.log('Handbrake reached! Seting Minimum ammount of bet so we wont loose any more DOGE');
259
                                setTimeout(function(){
260
                                        $loBetbutton.trigger('click');
261
                                }, 1000);                           
262
                                    
263
                    calleds = true;
264
                  }
265
      else calleds = false;
266
}
267
}
268
// Unbind old shit
269
$('#double_your_doge_bet_lose').unbind();
270
$('#double_your_doge_bet_win').unbind();
271
272
// Loser
273
$('#double_your_doge_bet_lose').bind("DOMSubtreeModified",function(event){
274
275
        
276
        if( $(event.currentTarget).is(':contains("lose")') )
277
        {
278
            
279
                        gameLost = gameLost + 1;
280
                        roundnumb();
281
                        console.log('%cWin: ' + gameWin + ' %cLost: ' + gameLost, 'color: #007a5c', 'color: #FF0000');
282
                                endtime=(new Date()).getTime();
283
                                var time=Math.floor((endtime-starttime )/1000);
284
                if( stopBeforeRedirect() )
285
                {
286
                                
287
                        return;
288
                }
289
                if( stopMaxStake() )
290
                {
291
                    
292
                 return;                              
293
                }
294
            else 
295
            
296
                                higherBet();
297
                                console.log(realtime(time));
298
                                console.log('You LOST!');
299
                                multiply();
300
                                setTimeout(function(){
301
                                        $loButton.trigger('click');
302
                                }, getRandomWait());
303
                                //$loButton.trigger('click');
304
        
305
            
306
        }
307
        
308
}
309
);
310
// Winner
311
$('#double_your_doge_bet_win').bind("DOMSubtreeModified",function(event){
312
        if( $(event.currentTarget).is(':contains("win")') )
313
        {
314
        
315
        gameWin = gameWin + 1;
316
        roundnumb();
317
        console.log('%cWin: ' + gameWin + ' %cLost: ' + gameLost, 'color: #007a5c', 'color: #FF0000');
318
                endtime=(new Date()).getTime();
319
                var time=Math.floor((endtime-starttime )/1000);
320
        console.log(realtime(time));
321
                higherBet();            
322
            
323
            if( iHaveEnoughMoni() )
324
            {
325
326
                        console.log('You WON!');
327
                        reset();
328
            if( stopped )
329
            {
330
                                stopped = false;
331
                                return false;
332
            }
333
         }
334
                else
335
                {
336
                        console.log('You WON! ');
337
                }
338
                setTimeout(function(){
339
                        $loButton.trigger('click');
340
                }, getRandomWait());
341
        }
342
}
343
);// JavaScript Document