Advertisement
coinwalk

snowybot python

Apr 23rd, 2024
628
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 time, re, math
  7. from selenium import webdriver
  8. from selenium.webdriver.common.by import By
  9. from selenium.webdriver.support.ui import Select
  10. from selenium.common.exceptions import NoSuchElementException
  11. from selenium.webdriver.firefox.service import Service
  12. service = Service(executable_path="/snap/bin/geckodriver")
  13. options = webdriver.FirefoxOptions()
  14. options.add_argument("--headless")
  15. driver = webdriver.Firefox(service=service, options=options)
  16. print("please wait loading page and login")
  17. driver.get("https://just-dice.com")
  18. time.sleep(20)
  19. driver.find_element(By.CSS_SELECTOR, "a.fancybox-item.fancybox-close").click()
  20. time.sleep(5)
  21. driver.find_element(By.LINK_TEXT, "Account").click()
  22. time.sleep(2)
  23. driver.find_element(By.ID, "myuser").clear()
  24. driver.find_element(By.ID, "myuser").send_keys("madman")
  25. time.sleep(0.01)
  26. driver.find_element(By.ID, "mypass").clear()
  27. driver.find_element(By.ID, "mypass").send_keys("future2000")
  28. time.sleep(0.01)
  29. driver.find_element(By.ID, "myok").click()
  30. time.sleep(20)
  31. print("logged in")
  32. original = float(driver.find_element(By.ID, "pct_balance").get_attribute("value"))
  33. love = 0.00001
  34. nice = love
  35. tens = (love * 10)
  36. hundreds = (love * 100)
  37. sevens = (love * 6.9)
  38. eights = (love * 7.9)
  39. snowie = 0
  40. funny = False
  41. lamb = 2
  42. silvery = original
  43. awesome = ((math.floor(original / tens)) * tens)
  44. joke = 144000000
  45. goldern = 4
  46. print("should see bets")
  47.  
  48. def go():
  49.     global original
  50.     global love
  51.     global nice
  52.     global tens
  53.     global sevens
  54.     global eights
  55.     global snowie
  56.     global funny
  57.     global lamb
  58.     global awesome
  59.     global joke
  60.     global goldern
  61.     global silvery
  62.     global hundreds
  63.     belance = float(driver.find_element(By.ID, "pct_balance").get_attribute("value"))
  64.     snow = round(belance-original, 8)
  65.     print("profit")
  66.     print(snow)
  67.     if ((belance>(((math.floor(belance/tens))*tens)+sevens)) and (belance<(((math.floor(belance/tens))*tens)+eights)) and (not(belance==snowie))):
  68.         nice = nice*2
  69.         snowie = (belance)
  70.     if ((((love*30)-nice)<=0) and (belance<silvery) and (belance<(((math.floor(belance/tens))*tens)+sevens))):
  71.         nice = love
  72.         snowie = 0
  73.         silvery = belance
  74.     if (((belance-(nice*2))<=0) and (belance<(((math.floor(belance/tens))*tens)+sevens))):
  75.         nice = love
  76.         snowie = 0
  77.         silvery = belance
  78.         goldern = 2
  79.         funny = True
  80.         joke = ((math.ceil(belance/tens))*tens)
  81.     if ((nice>=(love*goldern)) and (funny==False)):
  82.         joke = ((math.ceil(belance/hundreds))*hundreds)
  83.         funny = True
  84.     if ((nice>=(love*goldern)) and (funny==True) and (belance>=joke) and (belance<(((math.floor(belance/tens))*tens)+sevens))):
  85.         nice = love
  86.         snowie = 0
  87.         goldern = 4
  88.         silvery = belance
  89.         funny = False
  90.         joke = 144000000
  91.     if (belance<silvery):
  92.         silvery = belance
  93.     if (belance >= (original * 144000)):
  94.         print("winner winner chicken dinner")
  95.         return
  96.     time.sleep(0.1)
  97.     number = float(nice)
  98.     rounded_number = f"{number:.8f}"
  99.     driver.find_element(By.ID, "pct_chance").clear()
  100.     driver.find_element(By.ID, "pct_chance").send_keys("49.5000")
  101.     driver.find_element(By.ID, "pct_bet").clear()
  102.     driver.find_element(By.ID, "pct_bet").send_keys(rounded_number)
  103.     driver.find_element(By.ID, "a_lo").click()
  104.     time.sleep(0.8)
  105.     go()
  106.    
  107. if (1==1):
  108.     go()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement