Merge pull request '0.3 - Nachricht bei shutdown und restart wird nicht geschickt vor neustart (#62)' (#111) from #62 into 0.3
Reviewed-on: sh-edraft.de/kd_discord_bot#111 Reviewed-by: Ebola-Chan <nick.jungmann@gmail.com> Closes #62
This commit is contained in:
commit
1a5917ac6b
@ -58,8 +58,8 @@ class RestartCommand(DiscordCommandABC):
|
|||||||
|
|
||||||
self._config.add_configuration('IS_RESTART', 'true')
|
self._config.add_configuration('IS_RESTART', 'true')
|
||||||
await self._client_utils.presence_game('common.presence.restart')
|
await self._client_utils.presence_game('common.presence.restart')
|
||||||
await asyncio.sleep(self._settings.wait_for_restart)
|
|
||||||
await self._message_service.send_ctx_msg(ctx, self._t.transform('modules.admin.restart_message'))
|
await self._message_service.send_ctx_msg(ctx, self._t.transform('modules.admin.restart_message'))
|
||||||
|
await asyncio.sleep(self._settings.wait_for_restart)
|
||||||
await self._bot.stop_async()
|
await self._bot.stop_async()
|
||||||
|
|
||||||
self._logger.trace(__name__, f'Finished restart command')
|
self._logger.trace(__name__, f'Finished restart command')
|
||||||
|
Loading…
Reference in New Issue
Block a user