Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Up rate limit to 5 minutes #63

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hikingmetalpunk
Copy link

At 1 minute I watch the script bounce off the rate limit quite a bit, upping it to 5 minutes seems more reasonable

Bump up from 1 minute to 5
console.log("Rate limit reached. Waiting 1 minute")
await sleep(1000 * 60);
console.log("Rate limit reached. Waiting 5 minutes")
await sleep(1000 * 300);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend making the time calculation more explicit
1000 * 60 * 5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants