From 1495f24ab241d5473524e748e6bd4262b875e351 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 4 Aug 2021 13:56:05 +0200 Subject: [PATCH] fix get string of the list --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 2309ac8..e54a4c1 100644 --- a/main.py +++ b/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: