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') @commands.command(help='list des commits')
async def commits(self, ctx, number = 5): async def commits(self, ctx, number = 5):
number = int(number) 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() 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()[-number:]
@ -91,7 +91,7 @@ class Mybot(commands.Cog):
async def issue(self, ctx, *args): async def issue(self, ctx, *args):
if args: if args:
args = list(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() gl.auth()
if args[0] == 'list': if args[0] == 'list':
projects = gl.projects.list(search='Kabot')[0] projects = gl.projects.list(search='Kabot')[0]