mirror of
https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
synced 2025-07-11 15:36:36 +02:00
Compare commits
2 Commits
dev
...
49b691d736
Author | SHA1 | Date | |
---|---|---|---|
49b691d736 | |||
9549a6dea3 |
4
V6.py
4
V6.py
@ -165,6 +165,8 @@ def do_poll():
|
||||
try:
|
||||
answer_elem.click()
|
||||
except exceptions.ElementNotInteractableException:
|
||||
warning("element not clickable. Waiting a bit and retrying.")
|
||||
custom_sleep(uniform(2, 2.5))
|
||||
driver.execute_script("arguments[0].click();", answer_elem)
|
||||
custom_sleep(uniform(2, 2.5))
|
||||
except Exception as err:
|
||||
@ -680,7 +682,7 @@ def json_start(json_entry, cred: UserCredentials):
|
||||
login()
|
||||
try:
|
||||
if str(account_id) in json_entry["tout"]:
|
||||
daily_routine(cred)
|
||||
daily_routine(cred, True)
|
||||
except KeyError:
|
||||
pass
|
||||
else:
|
||||
|
@ -30,7 +30,7 @@ class DiscordLogger:
|
||||
)
|
||||
file = File("screenshot.png")
|
||||
embed.set_image(url="attachment://screenshot.png")
|
||||
embed.set_footer(text=self.config.UserCredentials.creds.get_mail())
|
||||
embed.set_footer(text=self.config.UserCredentials.get_mail())
|
||||
|
||||
self.config.discord.wh.send(embed=embed, username="error", file=file, avatar_url=self.config.discord.avatar_url)
|
||||
self.config.discord.wh.send(username="error", file=File("page.html"), avatar_url=self.config.discord.avatar_url)
|
||||
|
@ -30,7 +30,7 @@ class ColoredFormatter(logging.Formatter):
|
||||
|
||||
# Set up the root logger
|
||||
root_logger = logging.getLogger(__name__)
|
||||
root_logger.setLevel(logging.DEBUG)
|
||||
root_logger.setLevel(logging.INFO)
|
||||
|
||||
# Create a console handler and set the formatter
|
||||
ch = logging.StreamHandler()
|
||||
|
Reference in New Issue
Block a user