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"]: if keys["VERBOSE"]:
infoLastWord = "dernier mot : " infoLastWord = "dernier mot : "
if len(lastWord) > 0: if len(lastWord) > 0:
infoLastWord += f"dernier mot : {lastWord}" infoLastWord += f"dernier mot : {lastWord.split()[-1:][0]}"
else: else:
infoLastWord += "tweet ignoré car trop de hashtags" infoLastWord += "tweet ignoré car trop de hashtags"
print( print(