Advertisement
coinwalk

snowybot python

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