command commit

This commit is contained in:
BFlow 2020-08-27 17:34:04 +02:00
parent f955b71230
commit 60697c80c7

View file

@ -81,7 +81,9 @@ class Mybot(commands.Cog):
if args[0] == 'list': if args[0] == 'list':
projects = gl.projects.list(search='Kabot')[0] projects = gl.projects.list(search='Kabot')[0]
commits = projects.commits.list()[-5:] commits = projects.commits.list()[-5:]
await ctx.channel.send(commits) for commit in commits:
await ctx.channel.send(dir(commit))
await ctx.channel.send(commit.comments)
else: else:
await ctx.channel.send('unknown command') await ctx.channel.send('unknown command')