SatoshiBet-Bot


SUBMITTED BY: Guest

DATE: Aug. 20, 2014, 12:15 a.m.

FORMAT: JavaScript

SIZE: 3.1 kB

HITS: 2162

  1. // ==UserScript==
  2. //
  3. // @name BetterBetBot
  4. //
  5. // @description Open Source BetterBetting Bot
  6. //
  7. // @namespace reddit.com/beermoney
  8. //
  9. // @author rjames24000
  10. //
  11. // @version 1.5_Open_Ed
  12. //
  13. // @include https://satoshibet.com/*
  14. //
  15. // @include http://satoshibet.com/*
  16. //
  17. // ==/UserScript==
  18. /*
  19. * To use, open satoshi roulette put your minimum bet in the bottom left and bet 1 unit on each the upper right top two rows
  20. * Then press the mute button
  21. * type your minimum bet in the prompt and okay it
  22. * finally spin the wheel and let the bot take over
  23. *
  24. */
  25. document.getElementById('sound-toggle-wrapper')
  26. .onclick = function() {
  27. var startingBet = prompt("Please enter your starting bet here:", "0.001");
  28. startingBet = parseFloat(startingBet); //startingBet #important
  29. losecounter = 0;
  30. firstrun=true;
  31. start();
  32. function start() {
  33. setTimeout(start, 500);
  34. var ifLose = document.getElementById('result-text')
  35. .innerHTML;
  36. if(firstrun==true){
  37. firstrun=false;
  38. document.getElementById("clear-bt")
  39. .click();
  40. document.getElementById("bet-col-3")
  41. .click();
  42. document.getElementById("bet-col-2")
  43. .click();
  44. document.getElementById("bet-bt")
  45. .click();
  46. }else if (ifLose.length == 5) { //lost
  47. document.getElementById("clear-bt")
  48. .click();
  49. losecounter = losecounter + 1;
  50. tobet = losecounter;
  51. tobet = Math.pow(3, losecounter);
  52. for (temp = 0; temp != tobet; temp = temp + 1) {
  53. document.getElementById("bet-col-3")
  54. .click();
  55. document.getElementById("bet-col-2")
  56. .click();
  57. if (temp == tobet - 1) {
  58. document.getElementById("bet-bt").click();
  59. }
  60. }
  61. } else { //win
  62. losecounter = 0;
  63. document.getElementById("clear-bt")
  64. .click();
  65. //var currentBet = document.getElementById('bet-amount')
  66. //.value;
  67. //for (x = currentBet; x != startingBet; x = x / 2) {
  68. // document.getElementById("bet-divider")
  69. // .click();
  70. //}
  71. document.getElementById("bet-col-3")
  72. .click();
  73. document.getElementById("bet-col-2")
  74. .click();
  75. document.getElementById("bet-bt")
  76. .click();
  77. }
  78. };
  79. start();
  80. };

comments powered by Disqus