Advertisement
coinwalk

python snowybot update

Aug 22nd, 2024
88
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. print("should see bets")
  46.  
  47. def go():
  48.     global base
  49.     global tens
  50.     global sixes
  51.     global sevens
  52.     global eights
  53.     global thimble
  54.     global fumble
  55.     global freather
  56.     global belance
  57.     global nomber
  58.     global upper
  59.     global downer
  60.     global rounded_nomber
  61.     balance = float(driver.find_element(By.ID, "pct_balance").get_attribute("value"))
  62.     if ((balance>(((math.floor(balance/tens))*tens)+sevens)) and (balance<(((math.floor(balance/tens))*tens)+eights)) and (balance>freather)):
  63.          fumble = float(fumble)*2
  64.          freather = float(balance)
  65.     if ((balance>(((math.floor(balance/tens))*tens)+sevens)) and (balance<(((math.floor(balance/tens))*tens)+eights)) and (balance<freather)):
  66.          fumble = float(fumble)*2
  67.          freather = float(balance)
  68.     if (((balance/(balance/sixes))<=fumble) and (balance<(((math.floor(balance/tens))*tens)+sevens))):
  69.          fumble = base
  70.          freather = 0.0
  71.     if (balance<fumble):
  72.          print("lost all")
  73.          sys.exit()
  74.     if (balance>=(belance*1.024)):
  75.          print("winner winner chiken dinner")
  76.          sys.exit()
  77.     number = float(fumble)
  78.     rounded_number = f"{number:.8f}"
  79.     driver.find_element(By.ID, "pct_chance").clear()
  80.     driver.find_element(By.ID, "pct_chance").send_keys("49.5000")
  81.     driver.find_element(By.ID, "pct_bet").clear()
  82.     driver.find_element(By.ID, "pct_bet").send_keys(rounded_number)
  83.     driver.find_element(By.ID, "a_lo").click()
  84.     time.sleep(1.2)
  85.     go()
  86.  
  87. if (1==1):
  88.     go()
  89.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement