forked from swee/MeowNex
Update sweebot.py
This commit is contained in:
parent
6227e6f097
commit
4021636f70
1 changed files with 2 additions and 0 deletions
|
@ -338,6 +338,8 @@ while True:
|
||||||
cont = " ".join(command)
|
cont = " ".join(command)
|
||||||
if not channel in logs:
|
if not channel in logs:
|
||||||
logs[channel] = [{"nick": nick, "content": cont}]
|
logs[channel] = [{"nick": nick, "content": cont}]
|
||||||
|
else:
|
||||||
|
logs[channel].append({"nick": nick, "content": cont})
|
||||||
if len(logs[channel]) > 128: logs[channel] = logs[channel][:128]
|
if len(logs[channel]) > 128: logs[channel] = logs[channel][:128]
|
||||||
#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")
|
||||||
|
|
Loading…
Reference in a new issue