add commande "!cboulette"

This commit is contained in:
BFlow 2021-12-14 16:22:23 +01:00
parent d1f7d91485
commit 0c9aeece81

View file

@ -203,6 +203,13 @@ class Mybot(commands.Cog):
await asyncio.sleep(len(choix) / 4) await asyncio.sleep(len(choix) / 4)
await ctx.channel.send(choix) 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') @commands.command(help='Faire des choix')
async def choice(self, ctx, *words): async def choice(self, ctx, *words):
choices = random.choice(words) choices = random.choice(words)