From 3d653bdbd9d35884014ed9c988b415ee3b512fa4 Mon Sep 17 00:00:00 2001 From: Luke Ogburn <21106956+logburn@users.noreply.github.com> Date: Thu, 21 Apr 2022 00:17:34 -0400 Subject: [PATCH] testingo n server --- autotoot.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/autotoot.py b/autotoot.py index 1b7bb7b..5bee56d 100644 --- a/autotoot.py +++ b/autotoot.py @@ -5,13 +5,22 @@ import time def run(masto, service): # post any new posts, up to limit + print("a") subs = service.scrape_all() + print("b") + i = 0 for sub in subs: + i += 1 + print(f"c{i}") service.toot_posts(masto, subs[sub]) + print("d") + print("e") service.remember() + print("f") # post random if it has been a while service.keep_lively() + print("g") def main(): # get config @@ -26,7 +35,7 @@ def main(): neuter = c["neuter"].lower() == "true" if "wait" in c: wait = int(c["wait"]) - print(neuter, wait) + # make bots masto = bot(config, neuter=neuter) reddit = scraper("reddit", config, neuter=neuter)