Update kabot.py

This commit is contained in:
Milka64 2020-08-27 16:46:45 +00:00
parent aa0274ba22
commit 68ef3d2ea1

View file

@ -75,7 +75,7 @@ class Mybot(commands.Cog):
@commands.command(help='list des commits')
async def commits(self, ctx, number = 5):
number = int(number)
gl = gitlab.Gitlab('https://git.0w.tf/', private_token='VHLsCQTcjF3oxujqFRYz')
gl = gitlab.Gitlab('https://git.0w.tf/', private_token='s-e3HXBUTroL52cNkAbe')
gl.auth()
projects = gl.projects.list(search='Kabot')[0]
commits = projects.commits.list()[-number:]
@ -91,7 +91,7 @@ class Mybot(commands.Cog):
async def issue(self, ctx, *args):
if args:
args = list(args)
gl = gitlab.Gitlab('https://git.0w.tf/', private_token='VHLsCQTcjF3oxujqFRYz')
gl = gitlab.Gitlab('https://git.0w.tf/', private_token='s-e3HXBUTroL52cNkAbe')
gl.auth()
if args[0] == 'list':
projects = gl.projects.list(search='Kabot')[0]