1
0
Fork 0
mirror of synced 2024-05-19 12:02:29 +12:00

Corrected syntax error

This commit is contained in:
Phxntxm 2016-07-14 08:06:11 -05:00
parent 6138b5b816
commit 89ac5f092c

View file

@ -38,6 +38,7 @@ class Overwatch:
return
bt = result['battletag']
await self.bot.say("Searching profile information....")
try:
if hero:
result = urllib.request.urlopen(base_url + "{}/stats/general".format(bt))
@ -55,7 +56,7 @@ class Overwatch:
await self.bot.say("Overwatch stats for {} using the hero {}: ```py\n{}``` "
.format(user.name, hero.title(), fmt.title().replace("_", " ")))
except urllib.error.HTTPError:
await self.bot.say("{} has not used the hero {} before!".format(user.name, hero.title())
await self.bot.say("{} has not used the hero {} before!".format(user.name, hero.title()))
@ow.command(pass_context=True, name="add")
async def add(self, ctx, bt: str):