File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 2222SOFTWARE.
2323'''
2424
25- __version__ = '1.3.0 '
25+ __version__ = '1.3.1 '
2626
2727import discord
2828from discord .ext import commands
@@ -328,8 +328,8 @@ async def update(self, ctx):
328328 data = await resp .json ()
329329
330330 em = discord .Embed (
331- title = 'Cannot update ' ,
332- description = f'The bot is already up to date v `{ __version__ } `' ,
331+ title = 'Already Up To Date ' ,
332+ description = f'The latest version is [ `{ __version__ } `](https://github.com/kyb3r/modmail/blob/master/bot.py#L25) ' ,
333333 color = discord .Color .green ()
334334 )
335335
@@ -339,7 +339,12 @@ async def update(self, ctx):
339339 access_token = self .config .get ('GITHUB_ACCESS_TOKEN' )
340340
341341 if not access_token :
342- em .description = 'You have not properly set up github credentials.'
342+ em .description = 'You have not properly set up GitHub credentials. ' \
343+ 'Create a config variable named `GITHUB_ACCESS_TOKEN`' \
344+ ' and set the value as your personal access token which' \
345+ ' can be generated in your GitHub account\' s [developer ' \
346+ 'settings](https://github.com/settings/tokens).'
347+
343348 em .color = discord .Color .red ()
344349 return await ctx .send (embed = em )
345350
You can’t perform that action at this time.
0 commit comments