Update sweebot.py

This commit is contained in:
Nova Cat 2025-03-15 15:15:30 -07:00
parent 6b8ef81cdc
commit 48f9e5b1b8

View file

@ -369,12 +369,13 @@ while True:
print(nick) print(nick)
print(username) print(username)
print(perms) print(perms)
cont = " ".join(command) if not nick in ["MeowNexUS", "MeowNexU5", "MeowN3xUS"]:
if not channel in logs: cont = " ".join(command)
logs[channel] = [{"nick": nick, "content": cont}] if not channel in logs:
else: logs[channel] = [{"nick": nick, "content": cont}]
logs[channel].append({"nick": nick, "content": cont}) else:
if len(logs[channel]) > 128: logs[channel] = logs[channel][::-1][:128][::-1] logs[channel].append({"nick": nick, "content": cont})
if len(logs[channel]) > 128: logs[channel] = logs[channel][::-1][:128][::-1]
#open("log-text-"+channel, "a").write(" ".join(command) + "\n") #open("log-text-"+channel, "a").write(" ".join(command) + "\n")
#open("log-name-"+channel, "a").write(nick + "\n") #open("log-name-"+channel, "a").write(nick + "\n")
except: except: