From ac0841c8bfa05e43bd09c57fed1b3ff182e6998c Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Fri, 15 Apr 2022 21:32:58 +0200 Subject: [PATCH 1/2] fix start command# --- bot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)) From f78cfa6853c27dd8a4509dc674a4d15d1660fe5f Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Fri, 15 Apr 2022 21:34:38 +0200 Subject: [PATCH 2/2] bump pycord version --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 981d2f7..23eaf87 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -py-cord==2.0.0b5 \ No newline at end of file +py-cord==2.0.0b7 \ No newline at end of file