Advertisement
coinwalk

mighty snowybot

Jul 11th, 2024
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3.  
  4. import subprocess
  5. import sys
  6. import json
  7. import time, re, math
  8. import selenium
  9. from selenium import webdriver
  10. from selenium.webdriver.common.by import By
  11. from selenium.webdriver.support.ui import Select
  12. from selenium.common.exceptions import NoSuchElementException
  13. from selenium.webdriver.firefox.service import Service
  14. sys.setrecursionlimit(1000000000)
  15.  
  16. service = Service(executable_path= r"C:\geckodriver.exe")
  17. options = webdriver.FirefoxOptions()
  18. options.add_argument("--headless")
  19. options.binary_location = r'C:\Program Files\Mozilla Firefox\firefox.exe'
  20. driver = webdriver.Firefox(service=service, options=options)
  21. print("please wait loading page and login")
  22. driver.get("https://just-dice.com")
  23. time.sleep(20)
  24. driver.find_element(By.CSS_SELECTOR, "a.fancybox-item.fancybox-close").click()
  25. time.sleep(5)
  26. driver.find_element(By.LINK_TEXT, "Account").click()
  27. time.sleep(2)
  28. driver.find_element(By.ID, "myuser").clear()
  29. driver.find_element(By.ID, "myuser").send_keys("USERNAME")
  30. time.sleep(0.01)
  31. driver.find_element(By.ID, "mypass").clear()
  32. driver.find_element(By.ID, "mypass").send_keys("PASSWORD")
  33. time.sleep(0.01)
  34. driver.find_element(By.ID, "myok").click()
  35. time.sleep(20)
  36. print("logged in")
  37. freather = 0
  38. gold = float(driver.find_element(By.ID, "pct_balance").get_attribute("value"))
  39. ruggard = 14400
  40. goin = (ruggard/6)
  41. stale = (goin/24)
  42. nomber = (gold/ruggard)
  43. runded_number = f"{nomber:.8f}"
  44. base = float(runded_number)
  45. fumble = base
  46. tens = (base*10)
  47. sevens = (base*6.9)
  48. eights = (base*7.9)
  49. fives = (base*4.9)
  50. good = ((math.floor(gold/tens))*tens)
  51. time.sleep(0.2)
  52. print("should see bets")
  53.  
  54. def go():
  55.     global freather, base, fumble, gold, tens, good, sevens, eights, goin, ruggard, belance, stale
  56.     balance = float(driver.find_element(By.ID, "pct_balance").get_attribute("value"))
  57.     if ((balance>(((math.floor(balance/tens))*tens)+sevens)) and (balance<(((math.floor(balance/tens))*tens)+eights)) and (balance>freather)):
  58.         fumble *= 2
  59.         freather = balance
  60.     if ((balance>(((math.floor(balance/tens))*tens)+sevens)) and (balance<(((math.floor(balance/tens))*tens)+eights)) and (balance<freather)):
  61.         fumble *= 2
  62.         freather = balance
  63.     if (((balance-(fumble*goin))<=0) and (balance>(((math.floor(balance/tens))*tens)+eights))):
  64.         fumble = base
  65.         freather = 0
  66.     if (((balance-(fumble*goin))<=0) and (balance<(((math.floor(balance/tens))*tens)+sevens))):
  67.         fumble = base
  68.         freather = 0
  69.     if (((balance-(fumble*goin))<=0) and (balance>(((math.floor(balance/tens))*tens)+sevens)) and (balance<(((math.floor(balance/tens))*tens)+eights))):
  70.         fumble = base*2
  71.         freather = 0
  72.     if ((balance>=(good+tens)) and (balance<(((math.floor(balance/tens))*tens)+sevens))):
  73.         fumble = base
  74.         freather = 0
  75.         good = ((math.floor(balance/tens))*tens)
  76.     if (balance>(gold+(base*144))):
  77.         gold = balance
  78.         ruggard = 14400
  79.         goin = (ruggard/6)
  80.         stale = (goin/24)
  81.         base = (gold/ruggard)
  82.         fumble = base
  83.         tens = (base*10)
  84.         sevens = (base*6.9)
  85.         eights = (base*7.9)
  86.         fives = (base*4.9)
  87.         freather = 0
  88.         good = ((math.floor(balance/tens))*tens)
  89.     if (balance<(gold-(base*stale))):
  90.         gold = balance
  91.         ruggard = 14400
  92.         goin = (ruggard/6)
  93.         stale = (goin/24)
  94.         base = (gold/ruggard)
  95.         fumble = base
  96.         tens = (base*10)
  97.         sevens = (base*6.9)
  98.         eights = (base*7.9)
  99.         fives = (base*4.9)
  100.         freather = 0
  101.         good = ((math.floor(balance/tens))*tens)
  102.     if (balance>=240):
  103.         print("winner winner chicken dinner")
  104.         sys.exit()
  105.  
  106.     time.sleep(0.1)
  107.     number = float(fumble)
  108.     rounded_number = f"{number:.8f}"
  109.     driver.find_element(By.ID, "pct_chance").clear()
  110.     driver.find_element(By.ID, "pct_chance").send_keys("49.5000")
  111.     driver.find_element(By.ID, "pct_bet").clear()
  112.     driver.find_element(By.ID, "pct_bet").send_keys(rounded_number)
  113.     driver.find_element(By.ID, "a_lo").click()
  114.     time.sleep(0.8)
  115.     go()
  116.  
  117. if (1==1):
  118.     go()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement