Patch: Fix uptime command not found.
This commit is contained in:
parent
1aa0625d75
commit
f7eef643e3
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
__version__ = "0.0.1 patch 6"
|
__version__ = "0.0.1 Patch: Fix uptime command not found."
|
||||||
import socket
|
import socket
|
||||||
import subprocess
|
import subprocess
|
||||||
from time import sleep, time, ctime
|
from time import sleep, time, ctime
|
||||||
|
@ -412,7 +412,7 @@ while True:
|
||||||
|
|
||||||
elif command[0] == "$uptime":
|
elif command[0] == "$uptime":
|
||||||
try:
|
try:
|
||||||
system(['uptime -p'], channel)
|
system(['uptime', '-p'], channel)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
irc.send_irc(channel, nick + ": " + ex.__class__.__name__)
|
irc.send_irc(channel, nick + ": " + ex.__class__.__name__)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue