Advertisement
coinwalk

my best bot

Jul 7th, 2024
200
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. sys.setrecursionlimit(1000000000)
  15. service = Service(executable_path="/snap/bin/geckodriver")
  16. options = webdriver.FirefoxOptions()
  17. options.add_argument("--headless")
  18. driver = webdriver.Firefox(service=service, options=options)
  19. print("please wait loading page and login")
  20. driver.get("https://just-dice.com")
  21. time.sleep(20)
  22. driver.find_element(By.CSS_SELECTOR, "a.fancybox-item.fancybox-close").click()
  23. time.sleep(5)
  24. driver.find_element(By.LINK_TEXT, "Account").click()
  25. time.sleep(2)
  26. driver.find_element(By.ID, "myuser").clear()
  27. driver.find_element(By.ID, "myuser").send_keys("username")
  28. time.sleep(0.01)
  29. driver.find_element(By.ID, "mypass").clear()
  30. driver.find_element(By.ID, "mypass").send_keys("password")
  31. time.sleep(0.01)
  32. driver.find_element(By.ID, "myok").click()
  33. time.sleep(20)
  34. print("logged in")
  35. belance = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  36. freather = 0.0
  37. base = 0.000001
  38. fumble = base
  39. tens = (base*10)
  40. sevens = (base*6.9)
  41. eights = (base*7.9)
  42. gold = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  43. good = ((math.floor(float(gold)/tens))*tens)
  44. print("should see bets")
  45.  
  46. def go():
  47.     global base
  48.     global tens
  49.     global sevens
  50.     global eights
  51.     balance = driver.find_element(By.ID, "pct_balance").get_attribute("value")
  52.     global fumble
  53.     global freather
  54.     global good
  55.     global gold
  56.     global belance
  57.     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))):
  58.         fumble = float(fumble)*2
  59.         freather = float(balance)
  60.     if ((float(balance)>=float(good)+tens) and (float(balance)<(((math.floor(float(balance)/tens))*tens)+sevens))):
  61.         fumble = base
  62.         freather = 0.0
  63.         good = ((math.floor(float(balance)/tens))*tens)
  64.     time.sleep(0.1)
  65.     number = float(fumble)
  66.     rounded_number = f"{number:.8f}"
  67.     driver.find_element(By.ID, "pct_chance").clear()
  68.     driver.find_element(By.ID, "pct_chance").send_keys("49.5000")
  69.     driver.find_element(By.ID, "pct_bet").clear()
  70.     driver.find_element(By.ID, "pct_bet").send_keys(rounded_number)
  71.     driver.find_element(By.ID, "a_lo").click()
  72.     time.sleep(0.8)
  73.     go()
  74.  
  75. if (1==1):
  76.     go()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement