fix bot and bump version to rc1

This commit is contained in:
Aaron Riedel 2022-05-19 02:10:09 +02:00
parent d25b3f9a54
commit 5591f8c02e
Signed by: aaron
GPG key ID: 643004654D40D577

6
bot.py
View file

@ -100,7 +100,7 @@ class Confirm(discord.ui.View):
self.stop()
@bot.slash_command(guild_ids=[261575556708040705])
@permissions.has_role(member_role)
@commands.has_role(member_role)
async def roll(ctx,
dice: Option(str, "Würfel den/die du werfen willst. z.B. W20, 3d6", default="W20"),
):
@ -133,7 +133,7 @@ async def roll(ctx,
await ctx.response.send_message(embed=em)
@bot.slash_command(guild_ids=[261575556708040705])
@permissions.has_role(gm_role)
@commands.has_role(gm_role)
async def gmroll(ctx,
dice: Option(str, "Würfel den/die du werfen willst. z.B. W20, 3d6", default="W20"),
):
@ -181,7 +181,7 @@ class MyModal(Modal):
@bot.message_command(name="Emoji Text", guild_ids=[261575556708040705])
@permissions.has_role(member_role)
@commands.has_role(member_role)
async def emoji_text(ctx, message: discord.Message):
modal = MyModal()
modal.title = "Emoji Bot"