From d97895feaf0aa3a19c28fc3d0f780e5b7731e21e Mon Sep 17 00:00:00 2001 From: BFlow Date: Thu, 27 Aug 2020 18:55:33 +0200 Subject: [PATCH] dernier commit --- kabot/kabot/kabot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 0fcb6e5..99512b2 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -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'])