Advertisement
coinwalk

snowybot python

Apr 23rd, 2024
686
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. sevens = (love * 6.9)
  37. eights = (love * 7.9)
  38. snowie = 0
  39. funny = False
  40. lamb = 2
  41. silvery = original
  42. awesome = ((math.floor(original / tens)) * tens)
  43. joke = 144000000
  44. goldern = 4
  45. print("should see bets")
  46.  
  47. def go():
  48.     global original
  49.     global love
  50.     global nice
  51.     global tens
  52.     global sevens
  53.     global eights
  54.     global snowie
  55.     global funny
  56.     global lamb
  57.     global awesome
  58.     global joke
  59.     global goldern
  60.     global silvery
  61.     belance = float(driver.find_element(By.ID, "pct_balance").get_attribute("value"))
  62.     snow = round(belance-original, 8)
  63.     print("profit")
  64.     print(snow)
  65.     if ((belance>(((math.floor(belance/tens))*tens)+sevens)) and (belance<(((math.floor(belance/tens))*tens)+eights)) and (not(belance==snowie))):
  66.         nice = nice*2
  67.         snowie = (belance)
  68.     if ((((love*30)-nice)<=0) and (belance<silvery) and (belance<(((math.floor(belance/tens))*tens)+sevens))):
  69.         nice = love
  70.         snowie = 0
  71.         silvery = belance
  72.     if (((belance-(nice*2))<=0) and (belance<(((math.floor(belance/tens))*tens)+sevens))):
  73.         nice = love
  74.         snowie = 0
  75.         silvery = belance
  76.         goldern = 2
  77.         funny = True
  78.         joke = ((math.ceil(belance/tens))*tens)
  79.     if ((nice>=(love*goldern)) and (funny==False)):
  80.         joke = ((math.ceil(belance/hundreds))*hundreds)
  81.         funny = True
  82.     if ((nice>=(love*goldern)) and (funny==True) and (belance>=joke) and (belance<(((math.floor(belance/tens))*tens)+sevens))):
  83.         nice = love
  84.         snowie = 0
  85.         goldern = 4
  86.         silvery = belance
  87.         funny = False
  88.         joke = 144000000
  89.     if (belance<silvery):
  90.         silvery = belance
  91.     if (belance >= (original * 144000)):
  92.         print("winner winner chicken dinner")
  93.         return
  94.     time.sleep(0.1)
  95.     number = float(nice)
  96.     rounded_number = f"{number:.8f}"
  97.     driver.find_element(By.ID, "pct_chance").clear()
  98.     driver.find_element(By.ID, "pct_chance").send_keys("49.5000")
  99.     driver.find_element(By.ID, "pct_bet").clear()
  100.     driver.find_element(By.ID, "pct_bet").send_keys(rounded_number)
  101.     driver.find_element(By.ID, "a_lo").click()
  102.     time.sleep(0.8)
  103.     go()
  104.    
  105. if (1==1):
  106.     go()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement