1
0
Fork 0
mirror of synced 2024-05-29 16:59:42 +12:00

Updated code to work with the new OW API

This commit is contained in:
phxntxm 2017-01-17 09:38:26 -06:00
parent 2c0b82967a
commit 07e34ddee3

View file

@ -125,7 +125,7 @@ class Overwatch:
await self.bot.say("Looking up your profile information....")
# All we're doing here is ensuring that the status is 200 when looking up someone's general information
# If it's not, let them know exactly how to format their tag
endpoint = "{}/stats/general".format(bt)
endpoint = "{}/stats".format(bt)
data = await self._request(None, endpoint)
if data is None:
await self.bot.say("Profile does not exist! Battletags are picky, "