minor fixes

This commit is contained in:
Alex Orid 2021-05-04 16:54:45 -04:00
parent e05183ffeb
commit 5d9831fc30
3 changed files with 13 additions and 3 deletions

View File

@ -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()

View File

@ -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()

View File

@ -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