From 9b3efd7bd237688302ea11f319478ac3d9bff617 Mon Sep 17 00:00:00 2001 From: b3yond Date: Fri, 5 Oct 2018 23:40:41 +0200 Subject: [PATCH] fixed #41 - mention has to be in status text now --- active_bots/twitterbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/active_bots/twitterbot.py b/active_bots/twitterbot.py index 7b56523..081fc07 100755 --- a/active_bots/twitterbot.py +++ b/active_bots/twitterbot.py @@ -50,7 +50,7 @@ class TwitterBot(Bot): text = re.sub( "(?<=^|(?<=[^a-zA-Z0-9-_\.]))@([A-Za-z]+[A-Za-z0-9-_]+)", "", status.text) - username = api.me() + username = "@" + api.me().screen_name if username in status.text: reports.append(report.Report(status.author.screen_name, self,