This commit is contained in:
Luke Rogers 2012-04-02 01:06:11 +12:00
parent 6d81048d3f
commit c4df4c5b2b

View file

@ -54,7 +54,7 @@ def memory(inp):
@hook.command(autohelp=False)
def uptime(inp):
".uptime -- Shows the bot's uptime."
if os.name not "posix":
if os.name != "posix":
return "Sorry, this command is not supported on your OS."
up = subprocess.check_output("ps -eo pid,etime | grep %s | awk " \
"'{print $2}'" % os.getpid(), shell=True)