anoxpanda

Freebitco betting

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