From 25994fb92fa1d9ba250fe206beca5dbc3d09005b Mon Sep 17 00:00:00 2001 From: victormylle Date: Wed, 30 Sep 2020 18:36:14 +0200 Subject: [PATCH] fixed ping command --- cogs/servertatus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/servertatus.py b/cogs/servertatus.py index 82b32aa..5ea09c6 100644 --- a/cogs/servertatus.py +++ b/cogs/servertatus.py @@ -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."