removing link for better detection
This commit is contained in:
parent
2c7dff41ef
commit
e9e321aa36
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -26,7 +26,7 @@ class Listener(StreamListener):
|
||||||
def on_status(self, status):
|
def on_status(self, status):
|
||||||
"""Answer to tweets."""
|
"""Answer to tweets."""
|
||||||
if seniority(status._json["created_at"]):
|
if seniority(status._json["created_at"]):
|
||||||
tweetText = sub(r' +?\?|\?| +?\!| ?\!', '', status._json["text"])
|
tweetText = sub(r'https?:\/\/\S+| +?\?|\?| +?\!| ?\!', '', status._json["text"])
|
||||||
if tweetText.endswith(tuple(quoi)):
|
if tweetText.endswith(tuple(quoi)):
|
||||||
if status._json["user"]["screen_name"] in friends:
|
if status._json["user"]["screen_name"] in friends:
|
||||||
try:
|
try:
|
||||||
|
|
Reference in a new issue