From 5d9831fc30731045de06f3c96daca627eea34fed Mon Sep 17 00:00:00 2001 From: Alex Orid Date: Tue, 4 May 2021 16:54:45 -0400 Subject: [PATCH] minor fixes --- commands/implemented/Command_lights_v2.py | 2 +- standalone_obsWebSocket.py | 12 +++++++++++- standalone_tts_core.py | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/commands/implemented/Command_lights_v2.py b/commands/implemented/Command_lights_v2.py index 5cff0dd..7243a6e 100644 --- a/commands/implemented/Command_lights_v2.py +++ b/commands/implemented/Command_lights_v2.py @@ -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() diff --git a/standalone_obsWebSocket.py b/standalone_obsWebSocket.py index 7a22e8a..54822ad 100644 --- a/standalone_obsWebSocket.py +++ b/standalone_obsWebSocket.py @@ -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() diff --git a/standalone_tts_core.py b/standalone_tts_core.py index 1cca22b..aa45804 100644 --- a/standalone_tts_core.py +++ b/standalone_tts_core.py @@ -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