Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import subprocess
- import sys
- import lambda_function
- try:
- import selenium
- except ImportError:
- subprocess.check_call([sys.executable, "-m", "pip", "install", 'selenium'])
- finally:
- import selenium
- from selenium import webdriver
- from selenium.webdriver.common.by import By
- from selenium.webdriver.support.ui import Select
- from selenium.common.exceptions import NoSuchElementException
- import time, re, math
- from decimal import Decimal
- from selenium.webdriver.firefox.options import Options
- options = Options()
- options.add_argument("--headless")
- driver = webdriver.Firefox(options=options)
- print("please wait loading page and login")
- driver.get("https://just-dice.com")
- time.sleep(20)
- driver.find_element(By.CSS_SELECTOR, "a.fancybox-item.fancybox-close").click()
- time.sleep(5)
- driver.find_element(By.LINK_TEXT, "Account").click()
- time.sleep(2)
- driver.find_element(By.ID, "myuser").clear()
- driver.find_element(By.ID, "myuser").send_keys("ball")
- time.sleep(0.01)
- driver.find_element(By.ID, "mypass").clear()
- driver.find_element(By.ID, "mypass").send_keys("future2000")
- time.sleep(0.01)
- driver.find_element(By.ID, "myok").click()
- time.sleep(20)
- print("logged in")
- original = float(driver.find_element(By.ID, "pct_balance").get_attribute("value"))
- monkey = 0.0001
- bolux = monkey
- tens = (monkey * 10)
- sevens = (monkey * 6.9)
- eights = (monkey * 7.9)
- olsen = 0
- fart = 0
- sweet = 2
- awesome = ((math.floor(original / tens)) * tens)
- print("should see bets")
- def lambda_function():
- global original
- global monkey
- global bolux
- global tens
- global sevens
- global eights
- global olsen
- global fart
- global sweet
- global awesome
- belance = float(driver.find_element(By.ID, "pct_balance").get_attribute("value"))
- dog = round(belance-original, 8)
- print("profit")
- print(dog)
- if ((belance>(((math.floor(belance/tens))*tens)+sevens)) and (belance<(((math.floor(belance/tens))*tens)+eights)) and (not (belance==olsen)) and (belance<awesome)):
- bolux = bolux*2
- fart += 1
- olsen = belance
- if ((belance>(((math.floor(belance/tens))*tens)+sevens)) and (belance<(((math.floor(belance/tens))*tens)+eights)) and (not (belance==olsen)) and (belance>awesome)):
- bolux = bolux*2
- fart = 1
- olsen = belance
- if ((belance<(olsen-(bolux*2))) and (fart>=2)):
- bolux = monkey
- fart = 0
- olsen = 0
- sweet = 2
- awesome = ((math.ceil(belance / tens)) * tens)
- if (belance<(bolux*2)):
- bolux = monkey
- fart = 0
- olsen = 0
- sweet = 0
- awesome = ((math.ceil(belance/tens))*tens)
- if ((belance>(awesome+(tens*sweet))) and (belance<(((math.floor(belance/tens))*tens)+sevens))):
- bolux = monkey
- fart = 0
- olsen = 0
- sweet = 2
- awesome = ((math.floor(belance/tens))*tens)
- if (belance >= (original * 144000)):
- print("winner winner chicken dinner")
- return
- driver.find_element(By.ID, "pct_chance").clear()
- driver.find_element(By.ID, "pct_chance").send_keys("49.5000")
- driver.find_element(By.ID, "pct_bet").clear()
- driver.find_element(By.ID, "pct_bet").send_keys(float(bolux))
- driver.find_element(By.ID, "a_lo").click()
- time.sleep(1) # Adjust delay as needed
- lambda_function()
- if __name__ == "__main__":
- lambda_function ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement