mirror of
https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
synced 2025-08-09 15:06:36 +02:00
déja ca a fix le problème de lancement je pense
This commit is contained in:
15
V6.py
15
V6.py
@ -160,7 +160,6 @@ def play_quiz8():
|
||||
|
||||
except Exception as e:
|
||||
log_error(f"{format_error(e)} \n Good answers : {' '.join(correct_answers)}")
|
||||
printf("play_quiz8 : fin ")
|
||||
custom_sleep(3)
|
||||
|
||||
|
||||
@ -189,7 +188,6 @@ def play_quiz4(override=None):
|
||||
except Exception as e:
|
||||
log_error(e)
|
||||
raise ValueError(e)
|
||||
printf("play_quiz4 : end")
|
||||
custom_sleep(3)
|
||||
|
||||
|
||||
@ -206,7 +204,6 @@ def do_poll():
|
||||
except Exception as error:
|
||||
log_error(error)
|
||||
raise ValueError(error)
|
||||
printf("do_poll : end")
|
||||
custom_sleep(3)
|
||||
|
||||
|
||||
@ -567,6 +564,7 @@ def log_points(account="unknown"):
|
||||
driver.get("https://rewards.bing.com")
|
||||
custom_sleep(1)
|
||||
if "/proofs/" in driver.current_url:
|
||||
webhookFailure.send(f"Is /proof Useful in logpoints?", username="Dev tests", avatar_url="https://cdn.discordapp.com/attachments/793934298977009677/1144560898879541268/image.png")
|
||||
for id in ["KmsiCheckboxField","iLooksGood", "idSIButton9", "iCancel"]:
|
||||
try:
|
||||
driver.find_element(By.ID, id).click()
|
||||
@ -592,7 +590,7 @@ def log_points(account="unknown"):
|
||||
custom_sleep(300)
|
||||
log_error(e)
|
||||
points = None
|
||||
|
||||
|
||||
if not points :
|
||||
log_error(f"impossible d'avoir les points")
|
||||
|
||||
@ -609,11 +607,10 @@ def log_points(account="unknown"):
|
||||
else:
|
||||
webhookSuccess.send(f"{account_name} actuellement à {str(points)} points")
|
||||
|
||||
if g.sql_enabled :
|
||||
try :
|
||||
add_to_database(account_name, points)
|
||||
except Exception as e:
|
||||
log_error(e)
|
||||
try :
|
||||
add_to_database(account_name, points)
|
||||
except Exception as e:
|
||||
log_error(e)
|
||||
|
||||
|
||||
def fidelity():
|
||||
|
Reference in New Issue
Block a user