diff --git a/tootbot.py b/tootbot.py index 8821c93..2e67508 100755 --- a/tootbot.py +++ b/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