From 9300961afaa6735ca85fa786aa59f6cd88019723 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 8 Aug 2022 01:54:50 +0200 Subject: [PATCH] fix bug in verbose --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 8b76355..716b9b3 100644 --- a/main.py +++ b/main.py @@ -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(