Changed up error checking for if a hero isn't found/not used
This commit is contained in:
parent
17e78cd38e
commit
d137884b5b
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ class Overwatch:
|
||||||
async with s.get(url) as r:
|
async with s.get(url) as r:
|
||||||
result = await r.text()
|
result = await r.text()
|
||||||
msg = json.loads(result)['msg']
|
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())
|
fmt = "{} has not used the hero {} before!".format(user.name, hero.title())
|
||||||
await self.bot.say(fmt)
|
await self.bot.say(fmt)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue