From 8881f7074caf4a657debc6e11a886cfb95f7709d Mon Sep 17 00:00:00 2001 From: BFlow Date: Fri, 24 Apr 2020 10:06:16 +0200 Subject: [PATCH] correction add help commande issue --- kabot/kabot/kabot.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index c65aa2e..0330a0b 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -138,7 +138,10 @@ class Mybot(commands.Cog): await asyncio.sleep(len(slap_multiple)/4) await ctx.channel.send(random.choice(slap_multiple) % user) - @commands.command(help="Interrogation issues") + @commands.command(help="Interrogation issues", + "!issue[arg]", + "Args: list, search[optionnel: mot clé] et add[nom de l'issue]" + ) async def issue(self, ctx, *args): if args: args = list(args) @@ -166,8 +169,7 @@ class Mybot(commands.Cog): issue = project.issues.create({'title': title}) await ctx.channel.send(issue.web_url) else: - await ctx.channel.send('unknown command, Try: !issue [arg]', - "Args: list, search[optionnel: mot clé] et add[nom de l'issue]") + await ctx.channel.send('unknown command') @commands.command(help="optionnal args : [livre] [character]") async def kaamelott(self, ctx, *args):