Added received command to new commands #105

This commit is contained in:
2022-11-09 22:21:32 +01:00
parent 2483faef01
commit e47318d8e9
6 changed files with 21 additions and 5 deletions

View File

@@ -41,7 +41,6 @@ class PurgeCommand(DiscordCommandABC):
self._logger.debug(__name__, f'Received command purge {ctx}')
if not await self._client_utils.check_if_bot_is_ready_yet_and_respond(ctx):
return
self._client_utils.received_command(ctx.guild.id)
server_settings: ServerSettings = self._config.get_configuration(f'ServerSettings_{ctx.guild.id}')

View File

@@ -47,6 +47,7 @@ class RestartCommand(DiscordCommandABC):
self._logger.debug(__name__, f'Received command restart {ctx}')
if not await self._client_utils.check_if_bot_is_ready_yet_and_respond(ctx):
return
self._client_utils.received_command(ctx.guild.id)
self._client_utils.received_command(ctx.guild.id)

View File

@@ -47,6 +47,7 @@ class ShutdownCommand(DiscordCommandABC):
self._logger.debug(__name__, f'Received command shutdown {ctx}')
if not await self._client_utils.check_if_bot_is_ready_yet_and_respond(ctx):
return
self._client_utils.received_command(ctx.guild.id)
self._client_utils.received_command(ctx.guild.id)