From 0c9aeece815d9a1cb168a5187064ffba5d8bbfd8 Mon Sep 17 00:00:00 2001 From: BFlow Date: Tue, 14 Dec 2021 16:22:23 +0100 Subject: [PATCH] add commande "!cboulette" --- kabot/kabot/kabot.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index fe5f702..2dffbb6 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -203,6 +203,13 @@ class Mybot(commands.Cog): await asyncio.sleep(len(choix) / 4) await ctx.channel.send(choix) + @commands.command(help="j'adore la cuisine") + async def ciboulette(self, ctx): + cmd = self.bot.get_command('gif') + ctx.message = "!gif ciboulette" + await cmd.invoke(ctx) + + @commands.command(help='Faire des choix') async def choice(self, ctx, *words): choices = random.choice(words)