Advertisement
coinwalk

winner winner chicken dinner snowybot

Aug 5th, 2024
109
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. import selenium
  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. from selenium.webdriver.firefox.service import Service
  14.  
  15. sys.setrecursionlimit(1000000000)
  16. service = Service(executable_path= r"C:\geckodriver.exe")
  17. options = webdriver.FirefoxOptions()
  18. options.add_argument("--headless")
  19. options.binary_location = r'C:\Program Files\Mozilla Firefox\firefox.exe'
  20. driver = webdriver.Firefox(service=service, options=options)
  21. print("please wait loading page and login")
  22. driver.get("https://just-dice.com")
  23. time.sleep(20)
  24. driver.find_element(By.CSS_SELECTOR, "a.fancybox-item.fancybox-close").click()
  25. time.sleep(5)
  26. driver.find_element(By.LINK_TEXT, "Account").click()
  27. time.sleep(2)
  28. driver.find_element(By.ID, "myuser").clear()
  29. driver.find_element(By.ID, "myuser").send_keys("USERNAME")
  30. time.sleep(0.01)
  31. driver.find_element(By.ID, "mypass").clear()
  32. driver.find_element(By.ID, "mypass").send_keys("PASSWORD")
  33. time.sleep(0.01)
  34. driver.find_element(By.ID, "myok").click()
  35. time.sleep(20)
  36. print("logged in")
  37. belance = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  38. freather = 0.0
  39. fumble = ((float(belance))/1400)
  40. fart = 4
  41. base = ((float(belance))/1400)
  42. tens = (base*10)
  43. sevens = (base*6.9)
  44. eights = (base*7.9)
  45. gold = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  46. print("should see bets")
  47.  
  48. def go():
  49.     global base
  50.     global tens
  51.     global sevens
  52.     global eights
  53.     balance = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  54.     global fumble
  55.     global freather
  56.     global good
  57.     global fart
  58.     global gold
  59.     global belance
  60.     if ((float(balance)>(((math.floor(float(balance)/tens))*tens)+sevens)) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+eights)) and ((float(balance))<freather)):
  61.         fumble = float(fumble)*2
  62.         freather = float(balance)
  63.     if ((float(balance)>(((math.floor(float(balance)/tens))*tens)+sevens)) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+eights)) and ((float(balance))>freather)):
  64.         fumble = float(fumble)*2
  65.         freather = float(balance)
  66.     if ((((float(balance))-((float(fumble))*4))<=((float(gold))-(base*14))) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+sevens))):
  67.         fumble = base
  68.         freather = 0.0
  69.         gold = float(balance)
  70.     if ((((float(balance))-((float(fumble))*4))>=((float(gold))+(base*14))) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+sevens))):
  71.         fumble = base
  72.         freather = 0.0
  73.         gold = float(balance)
  74.     if ((float(balance))>=((float(belance))*1.24)):
  75.         print("winner winner chicken dinner")
  76.         sys.exit()
  77.     time.sleep(0.1)
  78.     number = float(fumble)
  79.     rounded_number = f"{number:.8f}"
  80.     driver.find_element(By.ID, "pct_chance").clear()
  81.     driver.find_element(By.ID, "pct_chance").send_keys("49.5000")
  82.     driver.find_element(By.ID, "pct_bet").clear()
  83.     driver.find_element(By.ID, "pct_bet").send_keys(rounded_number)
  84.     driver.find_element(By.ID, "a_lo").click()
  85.     time.sleep(0.8)
  86.     go()
  87.  
  88. if (1==1):
  89.     go()  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement