remoced lib, trying to fix .restart, .quit, and .clear

This commit is contained in:
neersighted 2012-03-01 12:48:25 -08:00
parent 55d2aa65bb
commit f6dff101f4
4 changed files with 3 additions and 34 deletions

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -19,7 +19,7 @@ def quit(inp, input=None, db=None, notice=None):
else:
input.conn.send("QUIT :Killed by " + input.nick + " (no reason)")
time.sleep(3)
subprocess.call(['lib/stop.py'])
subprocess.call(['./cloudbot stop'])
sys.exit()
@ -34,7 +34,7 @@ def restart(inp, input=None, db=None, notice=None):
else:
input.conn.send("QUIT :Restarted by " + input.nick + " (no reason)")
time.sleep(3)
subprocess.call(['lib/restart.py'])
subprocess.call(['./cloudbot restart'])
sys.exit()
@ -45,7 +45,7 @@ def clear(inp, input=None, db=None, notice=None):
notice("Only bot admins can use this command!")
return
time.sleep(3)
subprocess.call(['lib/clear.py'])
subprocess.call(['./cloudbot clear'])
sys.exit()