1
0
Fork 0
mirror of synced 2024-06-28 19:20:34 +12:00

Changed up error checking for if a hero isn't found/not used

This commit is contained in:
Phxntxm 2016-08-05 10:15:40 -05:00
parent 17e78cd38e
commit d137884b5b

View file

@ -57,7 +57,7 @@ class Overwatch:
async with s.get(url) as r:
result = await r.text()
msg = json.loads(result)['msg']
if msg = 'hero data not found':
if msg == 'hero data not found':
fmt = "{} has not used the hero {} before!".format(user.name, hero.title())
await self.bot.say(fmt)
return