Skip to content

Commit

Permalink
Switched to new backend
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Mar 29, 2024
1 parent d6faf6e commit c047fd1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions CB/Core.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ def __init__(self):
def init_master_config(self):
try:
self.masterConfig = json.load(gzip.open(io.BytesIO(
requests.get('https://storage.googleapis.com/cursebreaker/config-v2.json.gz',
headers=HEADERS, timeout=5).content)))
requests.get('https://cursebreaker.acidweb.dev/config-v2.json.gz', headers=HEADERS,
timeout=5).content)))
except Exception:
raise RuntimeError('Failed to fetch the master config file. '
'Check your connectivity to Google Cloud.') from None
Expand Down
2 changes: 1 addition & 1 deletion CB/Wago.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def install_companion(self, force):
target_path = Path('Interface/AddOns/CurseBreakerCompanion')
if not os.path.isdir(target_path) or force:
shutil.rmtree(target_path, ignore_errors=True)
ZipFile(BytesIO(requests.get('https://storage.googleapis.com/cursebreaker/CurseBreakerCompanion.zip',
ZipFile(BytesIO(requests.get('https://cursebreaker.acidweb.dev/CurseBreakerCompanion.zip',
headers=HEADERS, timeout=5).content)).extractall(target_path / '..')

def update(self):
Expand Down
6 changes: 3 additions & 3 deletions CurseBreaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def auto_update(self): # sourcery skip: extract-method
sys.exit(1)

def motd_parser(self):
payload = requests.get('https://storage.googleapis.com/cursebreaker/motd', headers=HEADERS, timeout=5)
payload = requests.get('https://cursebreaker.acidweb.dev/motd', headers=HEADERS, timeout=5)
if payload.status_code == 200:
self.console.print(Panel(payload.content.decode('UTF-8'), title=':warning: MOTD :warning:',
border_style='red'))
Expand Down Expand Up @@ -348,8 +348,8 @@ def setup_completer(self):
# noinspection PyBroadException
try:
self.slugs = json.load(gzip.open(io.BytesIO(
requests.get('https://storage.googleapis.com/cursebreaker/slugs-v2.json.gz',
headers=HEADERS, timeout=5).content)))
requests.get('https://cursebreaker.acidweb.dev/slugs-v2.json.gz', headers=HEADERS,
timeout=5).content)))
except Exception:
self.slugs = {'wa': [], 'wowi': [], 'gh': []}
addons = []
Expand Down
14 changes: 7 additions & 7 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c047fd1

Please sign in to comment.