Added messaging to mass-move #20
This commit is contained in:
parent
0d1c15b31d
commit
2868b1afe2
@ -1 +1 @@
|
|||||||
Subproject commit 57dd85de79d51893e5f5e5bd7f7d6065ba923f21
|
Subproject commit e7e9d85f7d0054ba95ae1ff87d91b4e218ef510f
|
@ -151,6 +151,10 @@
|
|||||||
},
|
},
|
||||||
"footer": ""
|
"footer": ""
|
||||||
},
|
},
|
||||||
|
"mass_move": {
|
||||||
|
"moved": "Alle Personen aus {} wurden nach {} verschoben.",
|
||||||
|
"channel_from_error": "Du musst dich in einem Voicechannel befinden oder die Option \"channel_from\" mit angeben."
|
||||||
|
},
|
||||||
"presence": {
|
"presence": {
|
||||||
"changed": "Presence wurde geändert.",
|
"changed": "Presence wurde geändert.",
|
||||||
"removed": "Presence wurde entfernt.",
|
"removed": "Presence wurde entfernt.",
|
||||||
|
@ -35,8 +35,8 @@ class MassMoveCommand(DiscordCommandABC):
|
|||||||
channel_from: discord.VoiceChannel = None):
|
channel_from: discord.VoiceChannel = None):
|
||||||
self._logger.debug(__name__, f'Received command mass-move {ctx}')
|
self._logger.debug(__name__, f'Received command mass-move {ctx}')
|
||||||
|
|
||||||
if channel_from is None and ctx.author.voice.channel is None:
|
if channel_from is None and ctx.author.voice is None:
|
||||||
##Hier den User benachrichtigen, dass er nicht in einem Channel sitzt.
|
await self._message_service.send_ctx_msg(ctx, self._t.transform('modules.base.mass_move.channel_from_error'))
|
||||||
return
|
return
|
||||||
|
|
||||||
if channel_from is None:
|
if channel_from is None:
|
||||||
@ -45,4 +45,6 @@ class MassMoveCommand(DiscordCommandABC):
|
|||||||
moves = [member.move_to(channel_to) for member in channel_from.members]
|
moves = [member.move_to(channel_to) for member in channel_from.members]
|
||||||
await asyncio.gather(*moves)
|
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')
|
self._logger.trace(__name__, f'Finished mass-move command')
|
||||||
|
Loading…
Reference in New Issue
Block a user