fix start command#
This commit is contained in:
parent
5f8bcf0f93
commit
ac0841c8bf
1 changed files with 4 additions and 1 deletions
5
bot.py
5
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))
|
||||
|
|
Loading…
Reference in a new issue