remove test stuff
This commit is contained in:
parent
095abc6fbd
commit
5978e40e78
1 changed files with 0 additions and 38 deletions
38
bot.py
38
bot.py
|
@ -82,28 +82,6 @@ class Confirm(discord.ui.View):
|
||||||
self.value = False
|
self.value = False
|
||||||
self.stop()
|
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])
|
@bot.slash_command(guild_ids=[261575556708040705])
|
||||||
@permissions.has_role(member_role)
|
@permissions.has_role(member_role)
|
||||||
async def roll(ctx,
|
async def roll(ctx,
|
||||||
|
@ -170,22 +148,6 @@ async def gmroll(ctx,
|
||||||
em = discord.Embed(title=rolle, description=rolltotal, colour=0x009933)
|
em = discord.Embed(title=rolle, description=rolltotal, colour=0x009933)
|
||||||
await ctx.response.send_message(embed=em, ephemeral=True)
|
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="<Text>", hidden=True)
|
|
||||||
@is_admin()
|
|
||||||
async def test(ctx, arg):
|
|
||||||
await ctx.send(arg)
|
|
||||||
|
|
||||||
@bot.command(help="veraltet", usage="", hidden=True)
|
@bot.command(help="veraltet", usage="", hidden=True)
|
||||||
@is_member()
|
@is_member()
|
||||||
async def yesno(ctx):
|
async def yesno(ctx):
|
||||||
|
|
Loading…
Reference in a new issue