diff --git a/bot.py b/bot.py index f41ada5..856db28 100644 --- a/bot.py +++ b/bot.py @@ -82,28 +82,6 @@ class Confirm(discord.ui.View): self.value = False self.stop() -class vote_view(discord.ui.View): - def __init__(self): - super().__init__() - self.value = None - @discord.ui.button(label="Ja", style=discord.ButtonStyle.green) - async def yes( - self, button: discord.ui.Button, interaction: discord.Interaction - ): - await interaction.response.send_message("Bestätigt", ephemeral=True) - self.value = "yes" - self.stop() - @discord.ui.button(label="Vielleicht", style=discord.ButtonStyle.grey) - async def maybe(self, button: discord.ui.Button, interaction: discord.Interaction): - await interaction.response.send_message("Abgebrochen", ephemeral=True) - self.value = "maybe" - self.stop() - @discord.ui.button(label="Nein", style=discord.ButtonStyle.red) - async def no(self, button: discord.ui.Button, interaction: discord.Interaction): - await interaction.response.send_message("Abgebrochen", ephemeral=True) - self.value = "no" - self.stop() - @bot.slash_command(guild_ids=[261575556708040705]) @permissions.has_role(member_role) async def roll(ctx, @@ -170,22 +148,6 @@ async def gmroll(ctx, em = discord.Embed(title=rolle, description=rolltotal, colour=0x009933) await ctx.response.send_message(embed=em, ephemeral=True) -@bot.slash_command(guild_ids=[261575556708040705]) -@permissions.has_role(member_role) -async def vote(ctx, - question: Option(str, "zu stellende Frage"), - ): - """Erstelle eine Abstimmung""" - em = discord.Embed(title=question, colour=0x00E0FF) - em.set_author(name=ctx.author.display_name, url=discord.Embed.Empty, icon_url=ctx.author.avatar.url) - view=vote_view() - await ctx.response.send_message(content="||@here||",embed=em, view=view) - -@bot.command(help="Wirft den gleichen Text zurück.", usage="", hidden=True) -@is_admin() -async def test(ctx, arg): - await ctx.send(arg) - @bot.command(help="veraltet", usage="", hidden=True) @is_member() async def yesno(ctx):