Browse Source

Fix conditional to detect retweets

master
Felix Ableitner 3 years ago
parent
commit
2bbdfede11
  1. 3
      tootbot.py

3
tootbot.py

@ -72,7 +72,8 @@ for t in reversed(d.entries[0:5]):
print("ERROR: First Login Failed!")
sys.exit(1)
if t.author != '(%s)' % twitter:
# t.author is formatted like (@user) for some weird reason
if re.sub('[()@]', '', t.author) != twitter:
# skip retweets
continue

Loading…
Cancel
Save