forked from Firepup650/FireBot
RAM hungry fix, and less spammy.
This commit is contained in:
parent
79738e0b03
commit
0199f25821
1 changed files with 1 additions and 4 deletions
|
@ -416,11 +416,8 @@ def main():
|
||||||
mfind(message, [f"reboot {rebt}", f"reboot {gblrebt}"], False)
|
mfind(message, [f"reboot {rebt}", f"reboot {gblrebt}"], False)
|
||||||
and name.lower() in adminnames
|
and name.lower() in adminnames
|
||||||
):
|
):
|
||||||
for i in channels:
|
|
||||||
sendmsg("Rebooting...", i)
|
|
||||||
send("QUIT :Rebooting\n")
|
send("QUIT :Rebooting\n")
|
||||||
__import__("os").system(f"python3 -u ircbot.py {server}")
|
exit("Reboot")
|
||||||
exit("Inner layer exited or crashed")
|
|
||||||
elif (
|
elif (
|
||||||
name.lower() in adminnames
|
name.lower() in adminnames
|
||||||
and message.rstrip().lower() == exitcode
|
and message.rstrip().lower() == exitcode
|
||||||
|
|
Loading…
Reference in a new issue