durr
This commit is contained in:
parent
6d81048d3f
commit
c4df4c5b2b
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ def memory(inp):
|
||||||
@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":
|
if os.name != "posix":
|
||||||
return "Sorry, this command is not supported on your OS."
|
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)
|
||||||
|
|
Reference in a new issue