From 86e3b139eb4562f82c61074d9cc39969c6615cdc Mon Sep 17 00:00:00 2001 From: Noah Date: Tue, 29 Aug 2023 19:37:17 -0700 Subject: [PATCH] add user to list on first chat --- src/pywiki_lite.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pywiki_lite.py b/src/pywiki_lite.py index 453b0d8..fd5f690 100644 --- a/src/pywiki_lite.py +++ b/src/pywiki_lite.py @@ -44,7 +44,7 @@ def resource_path(relative_path): def get_version(): - return "1.65" # Version Number + return "1.66" # Version Number class TwitchBotGUI(tk.Tk): @@ -1098,6 +1098,11 @@ def on_pubmsg(self, c, e): self.message_queue.append(author + ": " + message) self.last_message[author.lower()] = message + if author.lower() not in str(app.user_list.get(0, tk.END)): + self.users.append(author.lower()) + app.user_list.insert(tk.END, author.lower()) + app.user_count.config(text=app.user_list.size()) + # If a chat message starts with an exclamation point, try to run it as a command if e.arguments[0].startswith('!'): cmd = e.arguments[0][1:].split()