Repare ma connerie
This commit is contained in:
parent
a4a85e929f
commit
1db9e9685f
1 changed files with 2 additions and 1 deletions
|
@ -160,10 +160,11 @@ class Mybot(commands.Cog):
|
||||||
await ctx.channel.send("#" + str(issue['id']) + ": " + issue['title'] + '\n' + issue['web_url'])
|
await ctx.channel.send("#" + str(issue['id']) + ": " + issue['title'] + '\n' + issue['web_url'])
|
||||||
elif args[0] == 'add':
|
elif args[0] == 'add':
|
||||||
title = ' '.join(args[1:])
|
title = ' '.join(args[1:])
|
||||||
|
author = title + ' - By ' + ctx.message.author.name
|
||||||
projects = gl.projects.list()
|
projects = gl.projects.list()
|
||||||
for project in projects:
|
for project in projects:
|
||||||
if "Kabot" == project.name:
|
if "Kabot" == project.name:
|
||||||
issue = project.issues.create({'title': title})
|
issue = project.issues.create({'title': author})
|
||||||
await ctx.channel.send(issue.web_url)
|
await ctx.channel.send(issue.web_url)
|
||||||
else:
|
else:
|
||||||
await ctx.channel.send('unknown command')
|
await ctx.channel.send('unknown command')
|
||||||
|
|
Loading…
Reference in a new issue