Skip to content

Commit

Permalink
Merge pull request #52 from nemobis/editspeed
Browse files Browse the repository at this point in the history
Decrease editing speed for the bot to max 1 per 10 seconds
  • Loading branch information
nemobis committed Jul 30, 2019
2 parents 202ca71 + 928673c commit de7b7cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def run_bot(template_param, access_token=None, site=None, max_edits=100000):
page_json = json.load(f)
if run_bot_on_page(page_json, template_param, access_token=access_token, site=site):
edits_made += 1
sleep(3)
sleep(10)
if edits_made >= max_edits:
return

Expand Down

0 comments on commit de7b7cb

Please sign in to comment.