[ci] auto-format

This commit is contained in:
brostosjoined 2025-05-27 00:24:55 +00:00 committed by github-actions[bot]
parent a6fe6f4014
commit caf3d57374

View file

@ -22,10 +22,12 @@ def threaded(func):
return wrapper
def play_sound(sound):
with bs.get_foreground_host_activity().context:
bs.getsound(sound).play()
@threaded
def fetch_update():
url = 'https://ballistica.net/downloads'
@ -62,7 +64,6 @@ def fetch_update():
download_links.append(full_url)
build = babase.app.env.gui
bs_platform = babase.app.classic.platform
mash = machine().lower()
@ -82,7 +83,8 @@ def fetch_update():
extension = link.replace('https://files.ballistica.net/bombsquad/builds/', '')
if build:
if not ('server' in link_lower) and bs_platform.lower() in link_lower:
babase.screenmessage("A new BombSquad version is available...\nRedirecting to download page", (0.21, 1.0, 0.20))
babase.screenmessage(
"A new BombSquad version is available...\nRedirecting to download page", (0.21, 1.0, 0.20))
sound_sequence = [
("drumRoll", 0),
("fanfare", 0),
@ -110,7 +112,8 @@ def fetch_update():
time.sleep(4)
webbrowser.open(f'https://ballistica.net/downloads#:~:text={extension}')
except:
print(f"{GREEN}Download the latest version using this official link-> {LIGHT_BLUE}{link}{RESET}")
print(
f"{GREEN}Download the latest version using this official link-> {LIGHT_BLUE}{link}{RESET}")
# ba_meta export babase.Plugin