Advertisement
coinwalk

snowybot.py

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