fixed #41 - mention has to be in status text now

master
b3yond 2018-10-05 23:40:41 +02:00
parent 272fcb2d49
commit 76ca4d772a
1 changed files with 1 additions and 1 deletions

View File

@ -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,