Patch: Fix uptime command not found.

This commit is contained in:
Swee 2024-10-10 16:36:18 -07:00
parent 1aa0625d75
commit f7eef643e3

View file

@ -1,4 +1,4 @@
__version__ = "0.0.1 patch 6"
__version__ = "0.0.1 Patch: Fix uptime command not found."
import socket
import subprocess
from time import sleep, time, ctime
@ -412,7 +412,7 @@ while True:
elif command[0] == "$uptime":
try:
system(['uptime -p'], channel)
system(['uptime', '-p'], channel)
except Exception as ex:
irc.send_irc(channel, nick + ": " + ex.__class__.__name__)