diff --git a/src/backend.py b/src/backend.py index 93fdcc2..4c50a88 100644 --- a/src/backend.py +++ b/src/backend.py @@ -178,7 +178,7 @@ def codeEntry( time.sleep(0.3) # Wait for page to update so we can detect changes such as rate limited. while ('rate limit.' in driver.page_source): - sleepDuration = secrets.choice(range(5, 8)) + sleepDuration = secrets.choice(range(5, 7)) statistics['ratelimitCount'] += 1 print(f"Code: {color(totpCode, 'blue')} was {color('Ratelimited', 'yellow')} will retry in {color(sleepDuration, 'blue')}") time.sleep(sleepDuration) @@ -206,7 +206,6 @@ def codeEntry( # The entered TOTP code is invalid. Wait a few seconds, then try again. else: sleepDuration = secrets.choice(range(2, 6)) - sleepDuration = secrets.choice(range(2, 6)) #Testing if the main app UI renders. try: # Wait 1 second, then check if the Discord App's HTML loaded by it's CSS class name. If loaded, then output it to the user.