fixed ping command
This commit is contained in:
@@ -28,7 +28,7 @@ class ServerStatus(commands.Cog):
|
||||
try:
|
||||
# Online
|
||||
latency = f":green_circle: Server replied in {minecraftServer.ping()}ms."
|
||||
except ConnectionRefusedError:
|
||||
except:
|
||||
# Offline
|
||||
upCounter -= 1
|
||||
latency = ":red_circle: Server is offline."
|
||||
|
||||
Reference in New Issue
Block a user