minor fixes
This commit is contained in:
parent
e05183ffeb
commit
5d9831fc30
@ -31,7 +31,7 @@ class Command_lights_v2(AbstractCommand, metaclass=ABCMeta):
|
|||||||
praxis_logger_obj.log("\n Command>: " + command + rest)
|
praxis_logger_obj.log("\n Command>: " + command + rest)
|
||||||
isTwitch = False
|
isTwitch = False
|
||||||
|
|
||||||
if "Twitch" in source:
|
if "Twitch_ZZZ" in source: #temp changed for steam change back later
|
||||||
for name in config.allowedCommandsList_TwitchPowerUsers:
|
for name in config.allowedCommandsList_TwitchPowerUsers:
|
||||||
print(name)
|
print(name)
|
||||||
tempName = user.lower()
|
tempName = user.lower()
|
||||||
|
|||||||
@ -13,11 +13,21 @@ api = flask.Flask(__name__)
|
|||||||
# enable/disable this to get web pages of crashes returned
|
# enable/disable this to get web pages of crashes returned
|
||||||
api.config["DEBUG"] = False
|
api.config["DEBUG"] = False
|
||||||
|
|
||||||
|
possibleRequests = []
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
obsWebSocket.getRequests()
|
#possibleRequests = obsWebSocket.getRequests()
|
||||||
#obsWebSocket.makeRequest("ToggleStudioMode")
|
#obsWebSocket.makeRequest("ToggleStudioMode")
|
||||||
obsWebSocket.listenForData()
|
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__":
|
if __name__ == "__main__":
|
||||||
init()
|
init()
|
||||||
|
|||||||
@ -28,7 +28,7 @@ def send_text(tts_sender, tts_text):
|
|||||||
resp = requests.get(url)
|
resp = requests.get(url)
|
||||||
if resp.status_code == 200:
|
if resp.status_code == 200:
|
||||||
print("Got the following message: %s" % resp.text)
|
print("Got the following message: %s" % resp.text)
|
||||||
data = loads(resp.text)
|
#data = loads(resp.text)
|
||||||
#msg = data['message']
|
#msg = data['message']
|
||||||
#if msg is not None:
|
#if msg is not None:
|
||||||
#pass
|
#pass
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user