From 067ef84d11eb574ad6edbb47b821b5919a462612 Mon Sep 17 00:00:00 2001 From: Elmon11 Date: Tue, 8 Dec 2020 23:39:19 +0100 Subject: [PATCH] Update server_commands.py --- commands/server_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/server_commands.py b/commands/server_commands.py index f9baea7..36e320e 100644 --- a/commands/server_commands.py +++ b/commands/server_commands.py @@ -326,7 +326,7 @@ class ServerCommands(commands.Cog): print(f'TPS: {server_tps}, UPTIME: {server_uptime}') try: - server_uptime = re.match('[0-9]?[0-9] minutes [0-6]?[0-9] seconds', server_uptime)[0] + server_uptime = re.match('[0-9]?[0-9] minutes( [0-6]?[0-9] seconds)?', server_uptime)[0] server_tps = re.match('[0-2][0-9].?[0-9]?[0-9]?', server_tps)[0] maximum_memory = re.match('[0-9],?[0-9][0-9][0-9]? MB', maximum_memory)[0] allocated_memory = re.match('[0-9],?[0-9][0-9][0-9]? MB', allocated_memory)[0]