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 22
22
SOFTWARE.
23
23
'''
24
24
25
- __version__ = '1.3.0 '
25
+ __version__ = '1.3.1 '
26
26
27
27
import discord
28
28
from discord .ext import commands
@@ -328,8 +328,8 @@ async def update(self, ctx):
328
328
data = await resp .json ()
329
329
330
330
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) ' ,
333
333
color = discord .Color .green ()
334
334
)
335
335
@@ -339,7 +339,12 @@ async def update(self, ctx):
339
339
access_token = self .config .get ('GITHUB_ACCESS_TOKEN' )
340
340
341
341
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
+
343
348
em .color = discord .Color .red ()
344
349
return await ctx .send (embed = em )
345
350
You can’t perform that action at this time.
0 commit comments