v2 Standalone Docker Update #40
@ -31,7 +31,7 @@ class Command_lights_v2(AbstractCommand, metaclass=ABCMeta):
|
||||
praxis_logger_obj.log("\n Command>: " + command + rest)
|
||||
isTwitch = False
|
||||
|
||||
if "Twitch" in source:
|
||||
if "Twitch_ZZZ" in source: #temp changed for steam change back later
|
||||
for name in config.allowedCommandsList_TwitchPowerUsers:
|
||||
print(name)
|
||||
tempName = user.lower()
|
||||
|
||||
@ -13,11 +13,21 @@ api = flask.Flask(__name__)
|
||||
# enable/disable this to get web pages of crashes returned
|
||||
api.config["DEBUG"] = False
|
||||
|
||||
possibleRequests = []
|
||||
|
||||
def init():
|
||||
obsWebSocket.getRequests()
|
||||
#possibleRequests = obsWebSocket.getRequests()
|
||||
#obsWebSocket.makeRequest("ToggleStudioMode")
|
||||
obsWebSocket.listenForData()
|
||||
|
||||
@api.route('/api/v1/obs/websocket/getRequests', methods=['GET'])
|
||||
def getRequests():
|
||||
if 'name' in request.args:
|
||||
pass
|
||||
#if is_command(request.args['name']):
|
||||
# return flask.make_response('', 200)
|
||||
#else:
|
||||
# return flask.make_response('', 404)
|
||||
|
||||
if __name__ == "__main__":
|
||||
init()
|
||||
|
||||
@ -28,7 +28,7 @@ def send_text(tts_sender, tts_text):
|
||||
resp = requests.get(url)
|
||||
if resp.status_code == 200:
|
||||
print("Got the following message: %s" % resp.text)
|
||||
data = loads(resp.text)
|
||||
#data = loads(resp.text)
|
||||
#msg = data['message']
|
||||
#if msg is not None:
|
||||
#pass
|
||||
|
||||
Loading…
Reference in New Issue
Block a user