mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
[ci] auto-format
This commit is contained in:
parent
a6fe6f4014
commit
caf3d57374
1 changed files with 20 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue