diff --git a/bot.py b/bot.py index dd50983..e4c4b4e 100644 --- a/bot.py +++ b/bot.py @@ -271,11 +271,14 @@ async def start(ctx, role_mention): pnp_voice = await ctx.guild.fetch_channel(435869507123281920) role = ctx.message.role_mentions[0] em = discord.Embed(description='gespieltes PnP: %s\nTeilnehmer (zum Start):' % role.mention, colour=0x00770d) + move_members = [] for c in ctx.guild.voice_channels: for m in c.members: if role in m.roles: - await m.move_to(pnp_voice) + move_members.append(m) em.add_field(name=":white_check_mark: " + m.display_name, value = m.mention + " ist am Start! Juhu!", inline=False) + for m in move_members: + await m.move_to(pnp_voice) start_msg = await pnp_info.send(content=":game_die: **INFO: PnP Sitzung gestartet!**",embed=em) text_file = open("start_id.txt", "w") text_file.write(str(start_msg.id))