1
0
Fork 0
mirror of synced 2024-06-03 11:14:33 +12:00

Add a check to ensure uptime exists before adding it

This commit is contained in:
Phxntxm 2017-03-10 14:38:29 -06:00
parent c49bae11a8
commit 67d717cff7

View file

@ -198,6 +198,7 @@ class Core:
if bj_games:
embed.add_field(name='Total blackjack games running', value=bj_games)
if hasattr(bot, 'uptime'):
embed.add_field(name='Uptime', value=(pendulum.utcnow() - self.bot.uptime).in_words())
embed.set_footer(text=self.bot.description)