Skip to content

Commit dff4f65

Browse files
committed
Added an update command
1 parent 27cd10b commit dff4f65

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

bot.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
SOFTWARE.
2323
'''
2424

25-
__version__ = '1.3.0'
25+
__version__ = '1.3.1'
2626

2727
import discord
2828
from 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

0 commit comments

Comments
 (0)