remoced lib, trying to fix .restart, .quit, and .clear
This commit is contained in:
parent
55d2aa65bb
commit
f6dff101f4
4 changed files with 3 additions and 34 deletions
13
lib/clear.py
13
lib/clear.py
|
@ -1,13 +0,0 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
# Tiny little log clearer by neersighted
|
|
||||||
import sys
|
|
||||||
import os
|
|
||||||
import subprocess
|
|
||||||
|
|
||||||
if os.path.isfile("./cloudbot"):
|
|
||||||
clear = "./cloudbot clear"
|
|
||||||
else:
|
|
||||||
clear = ":"
|
|
||||||
|
|
||||||
subprocess.call(clear, shell=True)
|
|
||||||
sys.exit()
|
|
|
@ -1,9 +0,0 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
# Tiny little restarter by neersighted
|
|
||||||
import sys
|
|
||||||
import subprocess
|
|
||||||
|
|
||||||
restart = "./cloudbot restart"
|
|
||||||
|
|
||||||
subprocess.call(restart, shell=True)
|
|
||||||
sys.exit()
|
|
|
@ -1,9 +0,0 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
# Tiny little stoper by neersighted
|
|
||||||
import sys
|
|
||||||
import os
|
|
||||||
import subprocess
|
|
||||||
|
|
||||||
stop = "./cloudbot stop"
|
|
||||||
subprocess.call(stop, shell=True)
|
|
||||||
sys.exit()
|
|
|
@ -19,7 +19,7 @@ def quit(inp, input=None, db=None, notice=None):
|
||||||
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)
|
time.sleep(3)
|
||||||
subprocess.call(['lib/stop.py'])
|
subprocess.call(['./cloudbot stop'])
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ def restart(inp, input=None, db=None, notice=None):
|
||||||
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)
|
time.sleep(3)
|
||||||
subprocess.call(['lib/restart.py'])
|
subprocess.call(['./cloudbot restart'])
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ def clear(inp, input=None, db=None, notice=None):
|
||||||
notice("Only bot admins can use this command!")
|
notice("Only bot admins can use this command!")
|
||||||
return
|
return
|
||||||
time.sleep(3)
|
time.sleep(3)
|
||||||
subprocess.call(['lib/clear.py'])
|
subprocess.call(['./cloudbot clear'])
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue