Advertisement
coinwalk

python snowybot update

Aug 22nd, 2024
59
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. from selenium import webdriver
  9. from selenium.webdriver.common.by import By
  10. from selenium.webdriver.support.ui import Select
  11. from selenium.common.exceptions import NoSuchElementException
  12. from selenium.webdriver.firefox.service import Service
  13.  
  14. sys.setrecursionlimit(1000000000)
  15. service = Service(executable_path="/snap/bin/geckodriver")
  16. options = webdriver.FirefoxOptions()
  17. options.add_argument("--headless")
  18. driver = webdriver.Firefox(service=service, options=options)
  19. print("please wait loading page and login")
  20. driver.get("https://just-dice.com")
  21. time.sleep(20)
  22. driver.find_element(By.CSS_SELECTOR, "a.fancybox-item.fancybox-close").click()
  23. time.sleep(5)
  24. driver.find_element(By.LINK_TEXT, "Account").click()
  25. time.sleep(2)
  26. driver.find_element(By.ID, "myuser").clear()
  27. driver.find_element(By.ID, "myuser").send_keys("USERNAME")
  28. time.sleep(0.01)
  29. driver.find_element(By.ID, "mypass").clear()
  30. driver.find_element(By.ID, "mypass").send_keys("PASSWORD")
  31. time.sleep(0.01)
  32. driver.find_element(By.ID, "myok").click()
  33. time.sleep(20)
  34. print("logged in")
  35. belance = float(driver.find_element(By.ID, "pct_balance").get_attribute("value"))
  36. nomber = (belance/1000)
  37. rounded_nomber = f"{nomber:.8f}"
  38. fumble = float(rounded_nomber)
  39. base = float(rounded_nomber)
  40. tens = (base*10)
  41. sevens = (base*6.9)
  42. eights = (base*7.9)
  43. sixes = (base*6)
  44. freather = 0.0
  45. bob = ((math.floor(belance/tens))*tens)
  46. joe = ((math.floor(belance/tens))*tens)
  47. print("should see bets")
  48.  
  49. def go():
  50.     global base
  51.     global tens
  52.     global sixes
  53.     global sevens
  54.     global eights
  55.     global thimble
  56.     global fumble
  57.     global freather
  58.     global belance
  59.     global nomber
  60.     global upper
  61.     global downer
  62.     global rounded_nomber
  63.     global joe
  64.     global bob
  65.     balance = float(driver.find_element(By.ID, "pct_balance").get_attribute("value"))
  66.     if ((balance>(((math.floor(balance/tens))*tens)+sevens)) and (balance<(((math.floor(balance/tens))*tens)+eights)) and (balance>freather)):
  67.          fumble = float(fumble)*2
  68.          freather = float(balance)
  69.     if ((balance>(((math.floor(balance/tens))*tens)+sevens)) and (balance<(((math.floor(balance/tens))*tens)+eights)) and (balance<freather)):
  70.          fumble = float(fumble)*2
  71.          freather = float(balance)
  72.     if (((balance/(balance/sixes))<=fumble) and (balance<bob) and (balance<(((math.floor(balance/tens))*tens)+sevens))):
  73.          fumble = base
  74.          freather = 0.0
  75.          bob = ((math.ceil(balance/tens))*tens)
  76.     if (((balance/(balance/sixes))<=fumble) and (balance>joe) and (balance<(((math.floor(balance/tens))*tens)+sevens))):
  77.          fumble = base
  78.          freather = 0.0
  79.          bob = ((math.floor(balance/tens))*tens)
  80.          joe = ((math.floor(balance/tens))*tens)
  81.     if (balance<bob):
  82.          bob = ((math.ceil(balance/tens))*tens)
  83.     if (balance>joe):
  84.          joe = ((math.floor(balance/tens))*tens)
  85.     if (balance<fumble):
  86.          print("lost all")
  87.          sys.exit()
  88.     if (balance>=(belance*1.024)):
  89.          print("winner winner chiken dinner")
  90.          sys.exit()
  91.     number = float(fumble)
  92.     rounded_number = f"{number:.8f}"
  93.     driver.find_element(By.ID, "pct_chance").clear()
  94.     driver.find_element(By.ID, "pct_chance").send_keys("49.5000")
  95.     driver.find_element(By.ID, "pct_bet").clear()
  96.     driver.find_element(By.ID, "pct_bet").send_keys(rounded_number)
  97.     driver.find_element(By.ID, "a_lo").click()
  98.     time.sleep(1.2)
  99.     go()
  100.  
  101. if (1==1):
  102.     go()
  103.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement