Added messaging to mass-move #20

This commit is contained in:
2022-11-20 23:27:22 +01:00
parent 0d1c15b31d
commit 2868b1afe2
3 changed files with 9 additions and 3 deletions

View File

@@ -35,8 +35,8 @@ class MassMoveCommand(DiscordCommandABC):
channel_from: discord.VoiceChannel = None):
self._logger.debug(__name__, f'Received command mass-move {ctx}')
if channel_from is None and ctx.author.voice.channel is None:
##Hier den User benachrichtigen, dass er nicht in einem Channel sitzt.
if channel_from is None and ctx.author.voice is None:
await self._message_service.send_ctx_msg(ctx, self._t.transform('modules.base.mass_move.channel_from_error'))
return
if channel_from is None:
@@ -45,4 +45,6 @@ class MassMoveCommand(DiscordCommandABC):
moves = [member.move_to(channel_to) for member in channel_from.members]
await asyncio.gather(*moves)
await self._message_service.send_ctx_msg(ctx, self._t.transform('modules.base.mass_move.moved', channel_from.name, channel_to.name))
self._logger.trace(__name__, f'Finished mass-move command')