From ac1e01fda1cbc55fb2cce7f17f5a9cba59e0f9d6 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Mon, 1 Oct 2018 14:09:25 -0500 Subject: [PATCH] No random sleep --- tootbot.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tootbot.py b/tootbot.py index 1239cfd..c35aa41 100755 --- a/tootbot.py +++ b/tootbot.py @@ -9,17 +9,11 @@ import requests import re import sqlite3 from datetime import datetime, date, time, timedelta -import time -import random if len(sys.argv) < 4: print("Usage: python3 tootbot.py twitter_account mastodon_login mastodon_passwd mastodon_instance") sys.exit(1) -random.seed() -sleep_time = random.randint(0, 10 * 60) -time.sleep(sleep_time) - # sqlite db to store processed tweets (and corresponding toots ids) sql = sqlite3.connect('tootbot.db') db = sql.cursor()