fixed #41 - mention has to be in status text now
This commit is contained in:
parent
24598f0b87
commit
9b3efd7bd2
|
@ -50,7 +50,7 @@ class TwitterBot(Bot):
|
||||||
text = re.sub(
|
text = re.sub(
|
||||||
"(?<=^|(?<=[^a-zA-Z0-9-_\.]))@([A-Za-z]+[A-Za-z0-9-_]+)",
|
"(?<=^|(?<=[^a-zA-Z0-9-_\.]))@([A-Za-z]+[A-Za-z0-9-_]+)",
|
||||||
"", status.text)
|
"", status.text)
|
||||||
username = api.me()
|
username = "@" + api.me().screen_name
|
||||||
if username in status.text:
|
if username in status.text:
|
||||||
reports.append(report.Report(status.author.screen_name,
|
reports.append(report.Report(status.author.screen_name,
|
||||||
self,
|
self,
|
||||||
|
|
Loading…
Reference in a new issue