Skip to content

Commit

Permalink
add user to list on first chat
Browse files Browse the repository at this point in the history
  • Loading branch information
Ixitxachitl committed Aug 30, 2023
1 parent 21120c0 commit 86e3b13
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pywiki_lite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 86e3b13

Please # to comment.