From a14b1f1fb62039467eabd1c14aa80d25fac978da Mon Sep 17 00:00:00 2001 From: neersighted Date: Fri, 30 Mar 2012 09:31:36 -0700 Subject: [PATCH] tweaks, added help stings --- plugins/system.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/system.py b/plugins/system.py index 128c0f6..6d8c5b8 100755 --- a/plugins/system.py +++ b/plugins/system.py @@ -52,9 +52,10 @@ def mem(inp): return 'error: operating system not currently supported' -@hook.command("up", autohelp=False) +@hook.command("uptime", autohelp=False) @hook.command(autohelp=False) -def uptime(inp): +def up(inp): + ".up -- Shows the bot's uptime." proc = psutil.Process(os.getpid()) up_time = proc.create_time up_time = time.time() - up_time @@ -62,6 +63,8 @@ def uptime(inp): up_time = time.strftime("Uptime: \x02%M:%S\x02", up_time) return up_time +@hook.command("proc", autohelp=False) @hook.command(autohelp=False) def pid(inp): + ".pid -- Prints the bot's PID." return 'PID: \x02%s\x02' % os.getpid()