fix gitlab -> Gitlab #23
This commit is contained in:
parent
ebae4dabbd
commit
f127c9ed75
1 changed files with 2 additions and 2 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue