From 75b32ef3fb19d4af42548e33733aeff9dbfd5d5b Mon Sep 17 00:00:00 2001 From: Milka64 Date: Wed, 29 Apr 2020 15:30:34 +0200 Subject: [PATCH] add too_long arg --- kabot/kabot/kabot.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 256efba..a08540c 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -360,7 +360,7 @@ class Mybot(commands.Cog): @commands.command(help='Troll commands', hidden=True) async def joker(self, ctx): - await ctx.channel.send(trollpower()) + await ctx.channel.send(trollpower(too_long=True)) @commands.command(help='Troll commands', hidden=True) async def oke(self, ctx): @@ -371,7 +371,9 @@ class Mybot(commands.Cog): await self.joke(ctx, "tu_dois_tout_donner.mp3") #Fin des commandes pour troll. -def trollpower(): +def trollpower(too_long=None): + if too_long: + return("Bah alors, on sait plus écrire, je te donne un indice: t'as une lettre en trop! :sweat_drops: :tongue:") return('Bah alors, on sait plus écrire, je te donne un indice: il te manque une lettre! :sweat_drops: :tongue:') def get_word(word_type):