fix bug in verbose

This commit is contained in:
Mylloon 2022-08-08 01:54:50 +02:00
parent 2513236f6c
commit 9300961afa
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -116,7 +116,7 @@ class Listener(StreamingClient):
if keys["VERBOSE"]:
infoLastWord = "dernier mot : "
if len(lastWord) > 0:
infoLastWord += f"dernier mot : {lastWord}"
infoLastWord += f"dernier mot : {lastWord.split()[-1:][0]}"
else:
infoLastWord += "tweet ignoré car trop de hashtags"
print(