Skip to content

Commit

Permalink
pushing latest
Browse files Browse the repository at this point in the history
  • Loading branch information
Derpitron committed Oct 25, 2023
1 parent bc4a907 commit acf09e2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit acf09e2

Please sign in to comment.