Merge branch 'dev' into 'master'
fix start command and bump pycord version See merge request aaron-riedel/shbot!16
This commit is contained in:
commit
e045c259b5
2 changed files with 5 additions and 2 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)
|
pnp_voice = await ctx.guild.fetch_channel(435869507123281920)
|
||||||
role = ctx.message.role_mentions[0]
|
role = ctx.message.role_mentions[0]
|
||||||
em = discord.Embed(description='gespieltes PnP: %s\nTeilnehmer (zum Start):' % role.mention, colour=0x00770d)
|
em = discord.Embed(description='gespieltes PnP: %s\nTeilnehmer (zum Start):' % role.mention, colour=0x00770d)
|
||||||
|
move_members = []
|
||||||
for c in ctx.guild.voice_channels:
|
for c in ctx.guild.voice_channels:
|
||||||
for m in c.members:
|
for m in c.members:
|
||||||
if role in m.roles:
|
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)
|
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)
|
start_msg = await pnp_info.send(content=":game_die: **INFO: PnP Sitzung gestartet!**",embed=em)
|
||||||
text_file = open("start_id.txt", "w")
|
text_file = open("start_id.txt", "w")
|
||||||
text_file.write(str(start_msg.id))
|
text_file.write(str(start_msg.id))
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
py-cord==2.0.0b5
|
py-cord==2.0.0b7
|
Loading…
Reference in a new issue