Skip to content

Commit af0342a

Browse files
committed
Slight improvements
1 parent 49fc3be commit af0342a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

bot.py

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

25-
__version__ = '1.2.0'
25+
__version__ = '1.2.1'
2626

2727
import discord
2828
from discord.ext import commands
@@ -267,14 +267,18 @@ async def about(self, ctx):
267267

268268
em.add_field(name='Uptime', value=self.uptime)
269269
em.add_field(name='Latency', value=f'{self.latency*1000:.2f} ms')
270-
em.add_field(name='Version', value=f'[`{__version__}`](https://github.com/kyb3r/modmail/blob/master/bot.py#L45)')
270+
em.add_field(name='Version', value=f'[`{__version__}`](https://github.com/kyb3r/modmail/blob/master/bot.py#L25)')
271271
em.add_field(name='Author', value='[`kyb3r`](https://github.com/kyb3r)')
272272

273273
footer = f'Bot ID: {self.user.id}'
274+
274275
if meta:
275276
em.add_field(name='Instances', value=meta['instances'])
277+
276278
if __version__ != meta['latest_version']:
277279
footer = f"A newer version is available v{meta['latest_version']}"
280+
else:
281+
footer = 'You are up to date with the latest version.'
278282

279283
em.add_field(name='Github', value='https://github.com/kyb3r/modmail', inline=False)
280284

0 commit comments

Comments
 (0)