From 2f591a82e5db7cced94d37a969ca66343e0a361f Mon Sep 17 00:00:00 2001 From: BFlow Date: Fri, 24 Apr 2020 12:15:59 +0200 Subject: [PATCH] =?UTF-8?q?correction=20n=C2=B02=20add=20author=20(!issue?= =?UTF-8?q?=20ad)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kabot/kabot/kabot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 522679a..db72461 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -159,8 +159,8 @@ class Mybot(commands.Cog): for issue in find_issues: 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.nick + title = ''.join(args[1:]) + author = title + ' - By ' + ctx.message.author.name projects = gl.projects.list() for project in projects: if "Kabot" == project.name: