From abac507e878acde076333db3daa09ecf31c91d10 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Wed, 5 Oct 2022 19:11:34 +0200 Subject: [PATCH] Fixed shutdown command --- src/modules/admin/command/shutdown_command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/admin/command/shutdown_command.py b/src/modules/admin/command/shutdown_command.py index b4177c5440..0fe0f5fb3d 100644 --- a/src/modules/admin/command/shutdown_command.py +++ b/src/modules/admin/command/shutdown_command.py @@ -56,8 +56,8 @@ class ShutdownCommand(DiscordCommandABC): return await self._client_utils.presence_game('common.presence.shutdown') - await asyncio.sleep(self._settings.wait_for_shutdown) await self._message_service.send_ctx_msg(ctx, self._t.transform('modules.admin.shutdown_message')) + await asyncio.sleep(self._settings.wait_for_shutdown) await self._bot.stop_async() self._logger.trace(__name__, f'Finished shutdown command')