dernier commit

This commit is contained in:
BFlow 2020-08-27 18:55:33 +02:00
parent a670726056
commit d97895feaf

View file

@ -78,7 +78,7 @@ class Mybot(commands.Cog):
gl = gitlab.Gitlab('https://git.0w.tf/', private_token='s-e3HXBUTroL52cNkAbe')
gl.auth()
projects = gl.projects.list(search='Kabot')[0]
commits = projects.commits.list(all=True)[number:]
commits = projects.commits.list(all=True)[:number]
for commit in commits:
detail = commit.attributes
await ctx.channel.send("__" + detail['author_name'] + "__: " + detail['title'] + '\n' + detail['web_url'])