Fix
This commit is contained in:
parent
75694df0db
commit
6d81048d3f
1 changed files with 3 additions and 1 deletions
|
@ -48,12 +48,14 @@ def memory(inp):
|
||||||
return "Memory Usage: \x02%s MB\x02" % memory
|
return "Memory Usage: \x02%s MB\x02" % memory
|
||||||
|
|
||||||
else:
|
else:
|
||||||
return "Operating system not currently supported."
|
return "Sorry, this command is not supported on your OS."
|
||||||
|
|
||||||
|
|
||||||
@hook.command(autohelp=False)
|
@hook.command(autohelp=False)
|
||||||
def uptime(inp):
|
def uptime(inp):
|
||||||
".uptime -- Shows the bot's uptime."
|
".uptime -- Shows the bot's uptime."
|
||||||
|
if os.name not "posix":
|
||||||
|
return "Sorry, this command is not supported on your OS."
|
||||||
up = subprocess.check_output("ps -eo pid,etime | grep %s | awk " \
|
up = subprocess.check_output("ps -eo pid,etime | grep %s | awk " \
|
||||||
"'{print $2}'" % os.getpid(), shell=True)
|
"'{print $2}'" % os.getpid(), shell=True)
|
||||||
return "Uptime: \x02%s\x02" % up
|
return "Uptime: \x02%s\x02" % up
|
||||||
|
|
Reference in a new issue