From 58e8287348b86f3a4fdf177b093b69cea23bf336 Mon Sep 17 00:00:00 2001 From: BFlow Date: Fri, 10 Apr 2020 17:09:49 +0200 Subject: [PATCH] Kamoulox 2.0 correction --- kabot/kabot/kabot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 4ecad4a..f9d5e1a 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -194,7 +194,7 @@ class Mybot(commands.Cog): await ctx.send(response) @commands.command(help="Je menotte une cornemuse et je fume Eddy Malou") - async def kamoulox(self, ctx): + async def kamoulox(self, ctx): sans_verbe = get_word('nom').text + " " + get_word('complement').get('m') + " et " + get_word('nom').text + " " + get_word('complement').get('m') + "." nom1 = get_word('nom') nom2 = get_word('nom') @@ -209,9 +209,9 @@ class Mybot(commands.Cog): avec_verbe = phrase1 + " et " + phrase2 + "." piece = random.choice(['pile', 'face']) if piece == "pile": - sans_verbe + return sans_verbe elif piece == "face": - avec_verbe + return avec_verbe await ctx.send(piece) @tasks.loop(seconds=1.5)