Kamoulox 2.0 correction

This commit is contained in:
BFlow 2020-04-10 17:09:49 +02:00
parent f0f182560f
commit 58e8287348

View file

@ -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)