commands commit
This commit is contained in:
parent
aa0274ba22
commit
8a8db57257
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ class Mybot(commands.Cog):
|
||||||
gl = gitlab.Gitlab('https://git.0w.tf/', private_token='VHLsCQTcjF3oxujqFRYz')
|
gl = gitlab.Gitlab('https://git.0w.tf/', private_token='VHLsCQTcjF3oxujqFRYz')
|
||||||
gl.auth()
|
gl.auth()
|
||||||
projects = gl.projects.list(search='Kabot')[0]
|
projects = gl.projects.list(search='Kabot')[0]
|
||||||
commits = projects.commits.list()[-number:]
|
commits = projects.commits.list(all=True)[number:]
|
||||||
for commit in commits:
|
for commit in commits:
|
||||||
detail = commit.attributes
|
detail = commit.attributes
|
||||||
await ctx.channel.send("__" + detail['author_name'] + "__: " + detail['title'] + '\n' + detail['web_url'])
|
await ctx.channel.send("__" + detail['author_name'] + "__: " + detail['title'] + '\n' + detail['web_url'])
|
||||||
|
|
Loading…
Reference in a new issue