fix gitlab -> Gitlab #23

This commit is contained in:
Milka64 2020-12-13 18:21:20 +01:00
parent ebae4dabbd
commit f127c9ed75

View file

@ -79,7 +79,7 @@ class Mybot(commands.Cog):
async def commits(self, ctx, number = 5):
if self.gl_url and self.gl_token:
number = int(number)
gl = gitlab.gitlab(self.gl_url, self.gl_token)
gl = gitlab.Gitlab(self.gl_url, self.gl_token)
gl.auth()
projects = gl.projects.list(search='Kabot')[0]
commits = projects.commits.list(all=True)[:number]
@ -107,7 +107,7 @@ class Mybot(commands.Cog):
if self.gl_url and self.gl_token:
if args:
args = list(args)
gl = gitlab.gitlab(self.gl_url, self.gl_token)
gl = gitlab.Gitlab(self.gl_url, self.gl_token)
gl.auth()
if args[0] == 'list':
projects = gl.projects.list(search='Kabot')[0]