Update sweebot.py
All checks were successful
Check syntax / check (push) Successful in 8s

This commit is contained in:
Nova Cat 2024-12-22 19:30:08 -08:00
parent 6227e6f097
commit 4021636f70

View file

@ -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")