correction add help commande issue

This commit is contained in:
BFlow 2020-04-24 10:06:16 +02:00
parent e438e187d2
commit 8881f7074c

View file

@ -138,7 +138,10 @@ class Mybot(commands.Cog):
await asyncio.sleep(len(slap_multiple)/4) await asyncio.sleep(len(slap_multiple)/4)
await ctx.channel.send(random.choice(slap_multiple) % user) 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): async def issue(self, ctx, *args):
if args: if args:
args = list(args) args = list(args)
@ -166,8 +169,7 @@ class Mybot(commands.Cog):
issue = project.issues.create({'title': title}) issue = project.issues.create({'title': title})
await ctx.channel.send(issue.web_url) await ctx.channel.send(issue.web_url)
else: else:
await ctx.channel.send('unknown command, Try: !issue [arg]', await ctx.channel.send('unknown command')
"Args: list, search[optionnel: mot clé] et add[nom de l'issue]")
@commands.command(help="optionnal args : [livre] [character]") @commands.command(help="optionnal args : [livre] [character]")
async def kaamelott(self, ctx, *args): async def kaamelott(self, ctx, *args):