From 4021636f7085cfa242a10992bd85b497d9ad9c8a Mon Sep 17 00:00:00 2001 From: swee Date: Sun, 22 Dec 2024 19:30:08 -0800 Subject: [PATCH] Update sweebot.py --- sweebot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sweebot.py b/sweebot.py index 9b90ad6..9cb1b8c 100644 --- a/sweebot.py +++ b/sweebot.py @@ -338,6 +338,8 @@ while True: cont = " ".join(command) if not channel in logs: logs[channel] = [{"nick": nick, "content": cont}] + else: + logs[channel].append({"nick": nick, "content": cont}) if len(logs[channel]) > 128: logs[channel] = logs[channel][:128] #open("log-text-"+channel, "a").write(" ".join(command) + "\n") #open("log-name-"+channel, "a").write(nick + "\n")