Compare commits

..

No commits in common. "d66c3a6075a160dbc2418da12c52dcd2693ca542" and "821eef6f95524ae51dcf037ff7f0a84cbc64a280" have entirely different histories.

261 changed files with 72 additions and 349 deletions

1
.gitignore vendored
View File

@ -1,2 +1 @@
.credentials .credentials
/__pycache__/

View File

@ -1,13 +0,0 @@
import os
from typing import Tuple
def get_api_host(region: str) -> str:
return f"https://{region}.api.blizzard.com" if region != 'cn' else 'https://gateway.battlenet.com.cn'
def get_bnet_host(region: str) -> str:
region = region if region not in ['tw', 'kr'] else 'apac'
return f"https://{region}.battle.net" if region != 'cn' else 'https://www.battlenet.com.cn'
def get_credentials(path: str) -> Tuple[str, str]:
return tuple(open(os.path.join(path, '.credentials')).read().strip().split(':'))

Some files were not shown because too many files have changed in this diff Show More