y u no work, .restart?
This commit is contained in:
parent
daf3a86113
commit
a74c4c0933
1 changed files with 6 additions and 6 deletions
|
@ -18,8 +18,8 @@ def stop(inp, input=None, db=None, notice=None):
|
||||||
input.conn.send("QUIT :Killed by " + input.nick + " (" + inp + ")")
|
input.conn.send("QUIT :Killed by " + input.nick + " (" + inp + ")")
|
||||||
else:
|
else:
|
||||||
input.conn.send("QUIT :Killed by " + input.nick + " (no reason)")
|
input.conn.send("QUIT :Killed by " + input.nick + " (no reason)")
|
||||||
time.sleep(3)
|
subprocess.call("nohup ./cloudbot stop&", shell=True)
|
||||||
subprocess.call("./cloudbot stop", shell=True)
|
time.sleep(5)
|
||||||
|
|
||||||
|
|
||||||
@hook.command(autohelp=False)
|
@hook.command(autohelp=False)
|
||||||
|
@ -32,8 +32,8 @@ def restart(inp, input=None, db=None, notice=None):
|
||||||
input.conn.send("QUIT :Restarted by " + input.nick + " (" + inp + ")")
|
input.conn.send("QUIT :Restarted by " + input.nick + " (" + inp + ")")
|
||||||
else:
|
else:
|
||||||
input.conn.send("QUIT :Restarted by " + input.nick + " (no reason)")
|
input.conn.send("QUIT :Restarted by " + input.nick + " (no reason)")
|
||||||
time.sleep(3)
|
subprocess.call("nohup ./cloudbot restart&", shell=True)
|
||||||
subprocess.call("./cloudbot restart", shell=True)
|
time.sleep(5)
|
||||||
|
|
||||||
|
|
||||||
@hook.command(autohelp=False)
|
@hook.command(autohelp=False)
|
||||||
|
@ -42,8 +42,8 @@ def clear(inp, input=None, db=None, notice=None):
|
||||||
if not input.nick in input.bot.config["admins"]:
|
if not input.nick in input.bot.config["admins"]:
|
||||||
notice("Only bot admins can use this command!")
|
notice("Only bot admins can use this command!")
|
||||||
return
|
return
|
||||||
time.sleep(3)
|
subprocess.call("nohup ./cloudbot clear&", shell=True)
|
||||||
subprocess.call("./cloudbot clear", shell=True)
|
time.sleep(5)
|
||||||
|
|
||||||
|
|
||||||
@hook.command
|
@hook.command
|
||||||
|
|
Reference in a new issue