1
0
Fork 0
mirror of synced 2024-05-07 06:02:24 +12:00

Catch edge case

This commit is contained in:
phxntxm 2018-10-20 23:37:22 -05:00
parent 1625422a5f
commit a12d9c6dd7

View file

@ -190,7 +190,7 @@ class Stats:
EXAMPLE: !mostboops
RESULT: You've booped @OtherPerson 351253897120935712093572193057310298 times!"""
boops = self.bot.db.load('boops', key=ctx.message.author.id)
if boops is None:
if boops is None or "boops" not in boops:
await ctx.send("You have not booped anyone {} Why the heck not...?".format(ctx.message.author.mention))
return