Fixed the error number
This commit is contained in:
parent
084cb8fbb4
commit
1ef135e124
|
@ -60,7 +60,7 @@ class Overwatch:
|
|||
error_no = int(re.search("\d+",str(error)).group(0))
|
||||
if error_no == 500:
|
||||
await self.bot.say("{} has not used the hero {} before!".format(user.name, hero.title()))
|
||||
elif error_no == 400:
|
||||
elif error_no == 404:
|
||||
await self.bot.say("{} is not an actual hero!".format(hero.title()))
|
||||
|
||||
@ow.command(pass_context=True, name="add")
|
||||
|
|
Loading…
Reference in a new issue