freebitco.in bot


SUBMITTED BY: nattis311

DATE: Dec. 16, 2017, 11:28 p.m.

UPDATED: Dec. 17, 2017, 3:25 p.m.

FORMAT: Text only

SIZE: 12.2 kB

HITS: 627

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

comments powered by Disqus