fix get string of the list
This commit is contained in:
parent
1ba9cdf55c
commit
1495f24ab2
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -32,7 +32,7 @@ class Listener(StreamListener):
|
|||
if seniority(status._json["created_at"]):
|
||||
tweetText = sub(r'https?:\/\/\S+| +?\?|\?| +?\!| ?\!|-|~', '', status._json["text"])
|
||||
if status._json["user"]["id"] in self.listOfFriendsID:
|
||||
lastWord = tweetText.split()[-1:].lower()
|
||||
lastWord = tweetText.split()[-1:][0].lower()
|
||||
if lastWord in universalBase:
|
||||
try:
|
||||
if lastWord in quoiBase:
|
||||
|
|
Reference in a new issue