@@ -343,10 +343,10 @@ async def update(self, ctx):
343
343
color = discord .Color .green ()
344
344
)
345
345
346
- oauth_url = f'https://github.com/login/oauth/authorize?client_id=e54e4ff0f234ee9f22aa&scope=public_repo&redirect_uri=https://api.kybr.tk/api/ modmail/github/callback?user_id={ self .user .id } '
346
+ oauth_url = f'https://github.com/login/oauth/authorize?client_id=e54e4ff0f234ee9f22aa&scope=public_repo&redirect_uri=https://api.kybr.tk/modmail/github/callback?user_id={ self .user .id } '
347
347
348
348
if data ['latest_version' ] == __version__ :
349
- async with self .session .get (f'https://api.kybr.tk/api/ modmail/github/user/{ self .user .id } ' ) as resp :
349
+ async with self .session .get (f'https://api.kybr.tk/modmail/github/user/{ self .user .id } ' ) as resp :
350
350
if resp .status == 403 :
351
351
em .title = 'Unauthorised'
352
352
em .description = 'You have not authorised modmail. ' \
@@ -365,7 +365,7 @@ async def update(self, ctx):
365
365
em .set_author (name = new_commit ['user' ]['username' ], icon_url = new_commit ['user' ]['avatar_url' ], url = new_commit ['user' ]['url' ])
366
366
367
367
if data ['latest_version' ] != __version__ :
368
- async with self .session .get (f'https://api.kybr.tk/api/ modmail/github/pull/{ self .user .id } ' ) as resp :
368
+ async with self .session .get (f'https://api.kybr.tk/modmail/github/pull/{ self .user .id } ' ) as resp :
369
369
if resp .status == 403 :
370
370
em .title = 'Unauthorised'
371
371
em .description = 'You have not authorised modmail. ' \
@@ -392,7 +392,7 @@ async def update(self, ctx):
392
392
message = commit_data ['commit' ]['message' ]
393
393
html_url = commit_data ["html_url" ]
394
394
short_sha = commit_data ['sha' ][:6 ]
395
- em .add_field (name = 'Merge Commit' , value = f' [`{ short_sha } `]({ html_url } ) { message } - { user . username } ' )
395
+ em .add_field (name = 'Merge Commit' , value = f" [`{ short_sha } `]({ html_url } ) { message } - { new_commit [ ' user' ][ ' username' ] } " )
396
396
else :
397
397
em .description = 'Already up to date with master repository.'
398
398
0 commit comments