parent
6b8ef81cdc
commit
48f9e5b1b8
1 changed files with 7 additions and 6 deletions
13
sweebot.py
13
sweebot.py
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue