Added option to enable/disable ballistica web.

This commit is contained in:
pranav-1711 2022-03-04 18:32:57 +05:30
parent 34b17b8ee2
commit e381ec853c
3 changed files with 7 additions and 3 deletions

View file

@ -132,12 +132,12 @@ def get_top200():
return json.dumps(top200)
# ba_meta export plugin
class InitalRun(ba.Plugin):
class InitalRun:
def __init__(self):
print("start flask")
flask_run = _thread.start_new_thread(app.run, ("0.0.0.0",80,False ))
def enable():
InitalRun()
# SAMPLE OUTPUT
# {'system': {'cpu': 80, 'ram': 34}, 'roster': {}, 'chats': [], 'playlist': {'current': 'Meteor Shower @ Rampage', 'next': 'Assault @ Step Right Up'}, 'teamInfo': {'sessionType': 'DualTeamSession', 0: {'name': 'Blue', 'color': (0.1, 0.25, 1.0), 'score': 1, 'players': [{'name': 'Jolly', 'device_id': '\ue030PC295588', 'inGame': True, 'character': 'xmas', 'account_id': 'pb-IF4TVWwZUQ=='}]}, 1: {'name': 'Red', 'color': (1.0, 0.25, 0.2), 'score': 0, 'players': []}}}

View file

@ -80,6 +80,9 @@ def bootstraping():
elPatronPowerups.enable()
if settings["mikirogQuickTurn"]["enable"]:
from plugins import wavedash # pylint: disable=unused-import
if settings["ballistica_web"]["enable"]:
import bcs_plugin
bcs_plugin.enable()
# import features
if settings["whitelist"]:

View file

@ -43,6 +43,7 @@
"mikirogQuickTurn":{
"enable":true
},
"ballistica_web": true,
"elPatronPowerups":{
"enable":true,
"settings":{"Powers Gravity": true,