From ed125f7230a37168d08dbd3d61401455d272cc91 Mon Sep 17 00:00:00 2001 From: BFlow Date: Tue, 28 Apr 2020 21:21:33 +0200 Subject: [PATCH] add command choice --- kabot/kabot/kabot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 23f1fce..484ce41 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -128,6 +128,11 @@ class Mybot(commands.Cog): await asyncio.sleep(len(choix) / 4) await ctx.channel.send(choix) + @commands.command(help='Faire des choix') + def choice(self, ctx, *words): + choices = random.choice(words) + await ctx.channel.send(choices) + @commands.command(help="optionnal args : ") async def contrepeterie(self, ctx, *args): response = None