Advertisement
coinwalk

snowybot

Oct 1st, 2020
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. function resetseed(){
  2. var a=document.getElementsByClassName('ManualSeedControls')[0];
  3. if(!a)return;
  4. if(a.style.display!='block'){
  5. console.log('Enabling manual seed');
  6. if(document.getElementById('AccountTabManualSeed')){
  7. document.getElementById('AccountTabManualSeed').click();
  8. }
  9. resetseed();
  10. }
  11. }
  12. resetseed();
  13. function getR(min, max) {
  14. min = Math.ceil(min);
  15. max = Math.floor(max);
  16. return Math.floor(Math.random() * (max - min + 1)) + min;
  17. }
  18. function go () {
  19. var xol =getR(1,3);
  20. $('#LastBetInfoSecret').unbind('DOMSubtreeModified')
  21. onBetComplete = function(e){
  22. var myseed;
  23. if (xol==1) {
  24. myseed = getR(77777,99999);
  25. } else if (xol==2) {
  26. myseed = getR(6666,7777);
  27. } else {
  28. myseed = getR(0,80);
  29. }
  30. setTimeout(() => {
  31. $(".ManualSeedControls:visible input").val(myseed)}, 500);
  32. }
  33. $('#LastBetInfoSecret').bind('DOMSubtreeModified', onBetComplete );}
  34. setInterval(() => go(), 501);
  35.  
  36. Math.fmod = function (a,b) { return Number((a - (Math.floor(a / b) * b)).toPrecision(8)); }
  37.  
  38. var good=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  39. var longer=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  40. var longest=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  41. var long=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  42. var longy=document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  43. var chance=24;
  44. var nextbet;
  45. var fraction=512000;
  46. var basebet=longer/fraction;
  47. var more = document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText;
  48. var target = 500000;
  49. parseFloat(document.getElementById('BetSizeInput').value = (basebet));
  50. var bot=0;
  51.  
  52. function dobet(){
  53. var secret=parseFloat($('#LastBetInfoSecret').html());
  54. var bal=(document.getElementsByClassName("Numbers HighlightedText UserBalance")[0].innerText);
  55. var previousbet=document.getElementById('BetSizeInput').value;
  56. document.getElementById('BetChanceInput').value = chance;
  57. if (bal>good){
  58. console.log('in profit by');
  59. console.log((bal-good).toFixed(8));
  60. }else{
  61. console.log('not in profit');
  62. console.log((bal-good).toFixed(8));
  63. }
  64. if (secret<240000) {
  65. bot=0;
  66. }else{
  67. bot++;
  68. }
  69. if (bot==2) {
  70. nextbet=previousbet*2;
  71. }
  72. if (bot==6) {
  73. nextbet=previousbet*2;
  74. }
  75. if (bot==12) {
  76. nextbet=previousbet*2;
  77. }
  78. if (bot==16) {
  79. nextbet=previousbet*2;
  80. }
  81. if (bot==24) {
  82. nextbet=previousbet*2;
  83. }
  84. if (bot==30) {
  85. nextbet=previousbet*2;
  86. bot=0;
  87. }
  88. if (nextbet==null) {
  89. nextbet=previousbet;
  90. }
  91.  
  92. if (bal>more) {
  93. nextbet=bal/fraction;
  94. bot=0;
  95. more=parseFloat(bal);
  96. }
  97.  
  98. if (bal > target) {
  99. //stop();
  100. $('#notification').html('Relax & Reload');
  101. alert('Relax & Reload');
  102. console.log('Relax & Reload');
  103. return;
  104. }
  105. parseFloat(document.getElementById('BetSizeInput').value = (nextbet));
  106. $('#BetLowButton').click();}
  107.  
  108. setInterval(() => dobet(), 3000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement