Browse Source

Seed RNG, increase max wait interval

master
Felix Ableitner 4 years ago
committed by GitHub
parent
commit
d318978535
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      tootbot.py

3
tootbot.py

@ -16,7 +16,8 @@ if len(sys.argv) < 4:
print("Usage: python3 tootbot.py twitter_account mastodon_login mastodon_passwd mastodon_instance")
sys.exit(1)
sleep_time = random.randint(0, 5 * 60)
random.seed()
sleep_time = random.randint(0, 10 * 60)
time.sleep(sleep_time)
# sqlite db to store processed tweets (and corresponding toots ids)

Loading…
Cancel
Save