1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Correct region retrieving

This commit is contained in:
Phxntxm 2017-04-09 17:37:00 -05:00
parent 78b511c867
commit f69b947cfb

View file

@ -69,7 +69,7 @@ class Overwatch:
await ctx.send("I couldn't connect to overwatch at the moment!")
return
region = [x for x in data.keys() if data[x] is not None][0]
region = [x for x in data.keys() if data[x] is not None and x in ['us', 'any', 'kr', 'eu']][0]
stats = data[region]['heroes']['stats']['quickplay'].get(hero)
if stats is None: