create threads on votes and surveys

This commit is contained in:
Aaron Riedel 2022-02-01 19:21:28 +01:00
parent f16d9d818a
commit 2bdd7abc05

2
bot.py
View file

@ -195,6 +195,7 @@ async def survey(ctx, *, arg):
if a < z and a != 0: if a < z and a != 0:
await ask_msg.add_reaction(x) await ask_msg.add_reaction(x)
a = a + 1 a = a + 1
await ask_msg.create_thread(name="Diskussion")
@bot.command(help="Umfrage bearbeiten", usage="ID | <Frage> | <Antwort1> | <Antwort2> ...", hidden=True) @bot.command(help="Umfrage bearbeiten", usage="ID | <Frage> | <Antwort1> | <Antwort2> ...", hidden=True)
@is_member() @is_member()
@ -225,6 +226,7 @@ async def vote(ctx, *, arg):
ask_msg = await ctx.send(content="||@here||",embed=em) ask_msg = await ctx.send(content="||@here||",embed=em)
for x in ["", "", ""]: for x in ["", "", ""]:
await ask_msg.add_reaction(x) await ask_msg.add_reaction(x)
await ask_msg.create_thread(name="Diskussion")
@bot.command(help="den Bot etwas sagen lassen", usage="<text>") @bot.command(help="den Bot etwas sagen lassen", usage="<text>")
@is_admin() @is_admin()