Advertisement
coinwalk

python snowybot

Mar 16th, 2024
490
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. try:
  8.     import selenium
  9. except ImportError:
  10.     subprocess.check_call([sys.executable, "-m", "pip", "install", 'selenium'])
  11. finally:
  12.     import selenium
  13.  
  14. from selenium import webdriver
  15. from selenium.webdriver.common.by import By
  16. from selenium.webdriver.support.ui import Select
  17. from selenium.common.exceptions import NoSuchElementException
  18. import time, re, math
  19. from decimal import Decimal
  20. from selenium.webdriver.firefox.options import Options
  21.  
  22. options = Options()
  23. options.add_argument("--headless")
  24. driver = webdriver.Firefox(options=options)  
  25. print("please wait loading page and login")
  26. driver.get("https://just-dice.com")
  27. time.sleep(20)
  28. driver.find_element(By.CSS_SELECTOR, "a.fancybox-item.fancybox-close").click()
  29. time.sleep(5)
  30. driver.find_element(By.LINK_TEXT, "Account").click()
  31. time.sleep(2)
  32. driver.find_element(By.ID, "myuser").clear()
  33. driver.find_element(By.ID, "myuser").send_keys("ball")
  34. time.sleep(0.01)
  35. driver.find_element(By.ID, "mypass").clear()
  36. driver.find_element(By.ID, "mypass").send_keys("future2000")
  37. time.sleep(0.01)
  38. driver.find_element(By.ID, "myok").click()
  39. time.sleep(20)
  40. print("logged in")
  41. original = float(driver.find_element(By.ID, "pct_balance").get_attribute("value"))
  42. monkey = 0.0001
  43. bolux = monkey
  44. tens = (monkey * 10)
  45. sevens = (monkey * 6.9)
  46. eights = (monkey * 7.9)
  47. olsen = 0
  48. fart = 0
  49. sweet = 2
  50. awesome = ((math.floor(original / tens)) * tens)
  51. print("should see bets")
  52.  
  53. def lambda_function():
  54.     global original
  55.     global monkey
  56.     global bolux
  57.     global tens
  58.     global sevens
  59.     global eights
  60.     global olsen
  61.     global fart
  62.     global sweet
  63.     global awesome
  64.     belance = float(driver.find_element(By.ID, "pct_balance").get_attribute("value"))
  65.     dog = round(belance-original, 8)
  66.     print("profit")
  67.     print(dog)
  68.     if ((belance>(((math.floor(belance/tens))*tens)+sevens)) and (belance<(((math.floor(belance/tens))*tens)+eights)) and (not (belance==olsen)) and (belance<awesome)):
  69.             bolux = bolux*2
  70.             fart += 1
  71.             olsen = belance
  72.     if ((belance>(((math.floor(belance/tens))*tens)+sevens)) and (belance<(((math.floor(belance/tens))*tens)+eights)) and (not (belance==olsen)) and (belance>awesome)):
  73.             bolux = bolux*2
  74.             fart = 1
  75.             olsen = belance
  76.     if ((belance<(olsen-(bolux*2))) and (fart>=2)):
  77.             bolux = monkey
  78.             fart = 0
  79.             olsen = 0
  80.             sweet = 2
  81.             awesome = ((math.ceil(belance / tens)) * tens)
  82.     if (belance<(bolux*2)):
  83.             bolux = monkey
  84.             fart = 0
  85.             olsen = 0
  86.             sweet = 0
  87.             awesome = ((math.ceil(belance/tens))*tens)
  88.     if ((belance>(awesome+(tens*sweet))) and (belance<(((math.floor(belance/tens))*tens)+sevens))):
  89.             bolux = monkey
  90.             fart = 0
  91.             olsen = 0
  92.             sweet = 2
  93.             awesome = ((math.floor(belance/tens))*tens)
  94.     if (belance >= (original * 144000)):
  95.             print("winner winner chicken dinner")
  96.             return
  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(float(bolux))
  101.     driver.find_element(By.ID, "a_lo").click()
  102.     time.sleep(1)  # Adjust delay as needed
  103.     lambda_function()
  104.  
  105. if __name__ == "__main__":
  106.     lambda_function ()
  107.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement