dhmoon91 / porobot

0 stars 0 forks source link

Support different regions for users #28

Open HelloFive opened 3 years ago

HelloFive commented 3 years ago

Right now our code is fixed to be used for na1 region only. (https://github.com/dhmoon91/discord/blob/master/riot.py#L18)

We need a new feature for customers to be able to set the regions before using the bot

dhmoon91 commented 3 years ago

https://developer.riotgames.com/docs/lol

PLATFORM | HOST
-- | --
BR1 | br1.api.riotgames.com
EUN1 | eun1.api.riotgames.com
EUW1 | euw1.api.riotgames.com
JP1 | jp1.api.riotgames.com
KR | kr.api.riotgames.com
LA1 | la1.api.riotgames.com
LA2 | la2.api.riotgames.com
NA1 | na1.api.riotgames.com
OC1 | oc1.api.riotgames.com
TR1 | tr1.api.riotgames.com
RU | ru.api.riotgames.com

Think of mapping as well. User will type na/NA -> we should map it out to na1.