1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +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,7 +198,8 @@ class Core:
if bj_games:
embed.add_field(name='Total blackjack games running', value=bj_games)
embed.add_field(name='Uptime', value=(pendulum.utcnow() - self.bot.uptime).in_words())
if hasattr(bot, 'uptime'):
embed.add_field(name='Uptime', value=(pendulum.utcnow() - self.bot.uptime).in_words())
embed.set_footer(text=self.bot.description)
await ctx.send(embed=embed)