From 51f6dfad04481f7e32a6b9c25ac762fb8ea79043 Mon Sep 17 00:00:00 2001 From: jonasled Date: Sun, 16 Aug 2020 16:41:37 +0200 Subject: [PATCH] fixed poll --- bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 71d400d..11b062d 100644 --- a/bot.py +++ b/bot.py @@ -339,7 +339,8 @@ async def emoji(ctx, *message: str):#emojifies the string the user give as param # |_| @bot.command(pass_context=True, brief="starts a poll", description="starts a poll, please give as first argument the question (for sentences please use \") and then the posibilities (leave empty for yes or no)") -@commands.cooldown(1, cooldownTime, commands.BucketType.user) async def poll(ctx, question, *options: str):#this is a tool to create a poll +@commands.cooldown(1, cooldownTime, commands.BucketType.user) +async def poll(ctx, question, *options: str):#this is a tool to create a poll if reactOnValidCommand: await ctx.message.add_reaction("✅") if len(options) <= 1:#check if options were supplied, if not add yes and no to the options options = list(options)