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

Random delay option #41

Merged
merged 1 commit into from
May 22, 2024
Merged

Random delay option #41

merged 1 commit into from
May 22, 2024

Conversation

notklaatu
Copy link
Contributor

Creating multiple posts instantly may get a user banned from their instance.
I've added --delay option to randomly pause between posts.

I removed the continue statement in the --dry-run block and added an if not statement. The new logic is:

  • If it's a dry-run, print a message to stdout
  • If it's NOT a dry-run, create the post
  • If --delay is true, then delay a random number of seconds (between 10 and 30)

…stance.

I've added `--delay` option to randomly pause between posts.
@edsu edsu merged commit 84f1365 into edsu:main May 22, 2024
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