From 1db9e9685fe43749ae683e6dd5b9ce1574245d72 Mon Sep 17 00:00:00 2001 From: Admin Date: Fri, 24 Apr 2020 18:06:25 +0200 Subject: [PATCH] Repare ma connerie --- kabot/kabot/kabot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 0c69633..7a255fb 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -160,10 +160,11 @@ class Mybot(commands.Cog): await ctx.channel.send("#" + str(issue['id']) + ": " + issue['title'] + '\n' + issue['web_url']) elif args[0] == 'add': title = ' '.join(args[1:]) + author = title + ' - By ' + ctx.message.author.name projects = gl.projects.list() for project in projects: if "Kabot" == project.name: - issue = project.issues.create({'title': title}) + issue = project.issues.create({'title': author}) await ctx.channel.send(issue.web_url) else: await ctx.channel.send('unknown command')