From 885959d3e11f24942bb554948983264cf5a2f84c Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Sat, 30 Nov 2019 23:17:17 +0100 Subject: [PATCH] Ignore retweets --- tootbot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tootbot.py b/tootbot.py index 3b71d4a..1638a7c 100755 --- a/tootbot.py +++ b/tootbot.py @@ -72,6 +72,10 @@ for t in reversed(d.entries[0:5]): print("ERROR: First Login Failed!") sys.exit(1) + if t.author != '(%s)' % twitter: + # skip retweets + continue + c = t.title toot_media = [] # get the pictures...