diff --git a/bot.py b/bot.py index ea622d7..c07681b 100644 --- a/bot.py +++ b/bot.py @@ -214,6 +214,7 @@ async def survey(ctx, *, arg): if a < z and a != 0: await ask_msg.add_reaction(x) a = a + 1 + await ask_msg.create_thread(name="Diskussion") @bot.command(help="Umfrage bearbeiten", usage="ID | | | ...", hidden=True) @is_member() @@ -244,14 +245,14 @@ async def vote(ctx, *, arg): ask_msg = await ctx.send(content="||@here||",embed=em) for x in ["✅", "❔", "❌"]: await ask_msg.add_reaction(x) + await ask_msg.create_thread(name="Diskussion") @bot.command(help="den Bot etwas sagen lassen", usage="") @is_admin() async def say(ctx, *, arg): await ctx.message.delete() em = discord.Embed(description=arg, colour=0x00E0FF) - await message.channel.send(embed=em) - await message.delete() + await ctx.message.channel.send(embed=em) @bot.command(help="Starte ne Runde PnP", usage="@Rolle") @is_gm() diff --git a/clear_commands.py b/clear_commands.py new file mode 100644 index 0000000..4b0d2d2 --- /dev/null +++ b/clear_commands.py @@ -0,0 +1,22 @@ +import discord +import os +from os import system +from os import environ +from discord.ext import commands + +intents = discord.Intents( + guilds=True, + members=True, + messages=True, +) + +token = os.environ['TOKEN'] +prefix = os.environ['PREFIX'] +bot = commands.Bot(intents=intents, command_prefix=prefix) +client = discord.Client() + +@bot.event +async def on_ready(): + print("Bot ready on Version %s..." % discord.__version__) + +bot.run(token) \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 64ab083..70dba3b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -py-cord==2.0.0b1 \ No newline at end of file +py-cord==2.0.0b3 \ No newline at end of file