From f6dff101f4a734273c9b0c0c8415ebdd75d89373 Mon Sep 17 00:00:00 2001 From: neersighted Date: Thu, 1 Mar 2012 12:48:25 -0800 Subject: [PATCH] remoced lib, trying to fix .restart, .quit, and .clear --- lib/clear.py | 13 ------------- lib/restart.py | 9 --------- lib/stop.py | 9 --------- plugins/admin.py | 6 +++--- 4 files changed, 3 insertions(+), 34 deletions(-) delete mode 100755 lib/clear.py delete mode 100755 lib/restart.py delete mode 100755 lib/stop.py diff --git a/lib/clear.py b/lib/clear.py deleted file mode 100755 index 97168b8..0000000 --- a/lib/clear.py +++ /dev/null @@ -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() diff --git a/lib/restart.py b/lib/restart.py deleted file mode 100755 index 9fcf3a2..0000000 --- a/lib/restart.py +++ /dev/null @@ -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() diff --git a/lib/stop.py b/lib/stop.py deleted file mode 100755 index 87ee865..0000000 --- a/lib/stop.py +++ /dev/null @@ -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() diff --git a/plugins/admin.py b/plugins/admin.py index f933dcb..ea4e205 100755 --- a/plugins/admin.py +++ b/plugins/admin.py @@ -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()