-
+
-
-
+
+
add
Commands:
-
-
-
-
+
+
- Cmd Name:
Trigger:
Responses:
O
Command Name:
-
+
+
add
Rewards:
-
-
-
-
+
+
- Rwd Name:
Trigger:
Responses:
O
Reward Name:
+
add
- Timers:
+
-
+
-
Timer Name:
Trigger:
Trigger_EXEC:
O
O
-
+
+
add
Text Sources:
-
+
-
+
- Text Name:
File Name:
Title:
Text:
O
delete
-
- add
+
+
+ refresh
- Event History:
+
@@ -172,8 +186,8 @@
-
-
Event:
User:
Modules:
+
+
+
+
+
+
+
+
+
+
diff --git a/user_client/v1/settings.html b/user_client/v1/settings.html
new file mode 100644
index 0000000..e69de29
diff --git a/user_client/v1/style.css b/user_client/v1/style.css
index ae41476..fc99f7d 100644
--- a/user_client/v1/style.css
+++ b/user_client/v1/style.css
@@ -29,12 +29,12 @@ p {
}
#sidebar_area{
- background-color: aquamarine;
+ background-color: rgb(235, 235, 235);;
min-height: 100%;
}
#main_area{
- background-color: rgb(195, 246, 255);
+ background-color: rgb(221, 221, 221);
min-height: 100%;
}
@@ -121,6 +121,16 @@ p {
padding-bottom: 30px;
}
+.EventHistoryWrapper{
+ overflow-y: scroll;
+ max-height: 60vh;
+ background-color: rgb(175, 213, 214);
+ margin-right: 20px;
+ margin-left: 20px;
+ margin-top: 30px;
+ margin-bottom: 30px;
+}
+
/* width */
::-webkit-scrollbar {
width: 20px;
diff --git a/user_client/v1/webclient.js b/user_client/v1/webclient.js
index e1203a0..6289915 100644
--- a/user_client/v1/webclient.js
+++ b/user_client/v1/webclient.js
@@ -24,24 +24,17 @@ fetch_GetList = (fetchURL) => response = fetch(fetchURL)
-myObj = {
- 'request_name': "Chyron",
- 'request_type': "list"
- };
-params = "?request_name="+encodeURIComponent(myObj.request_name)+"&"+"request_type="+encodeURIComponent(myObj.request_type);
-url = "http://127.0.0.1:5500/api/v1/user_client/get"+params;
-
GetList = async (listType) => {
- if (listType == "Chyron") {
- chyronListRequestOBJ = {
- 'request_name': "Chyron",
+ if (true) {
+ ListRequestOBJ = {
+ 'request_name': listType,
'request_type': "list"
}
- params = "?request_name="+encodeURIComponent(chyronListRequestOBJ.request_name)+"&"+"request_type="+encodeURIComponent(chyronListRequestOBJ.request_type);
+ params = "?request_name="+encodeURIComponent(ListRequestOBJ.request_name)+"&"+"request_type="+encodeURIComponent(ListRequestOBJ.request_type);
targetURL = "http://127.0.0.1:5500/api/v1/user_client/get"+params;
console.log(targetURL)
a = await fetch_GetList(targetURL);
- console.log(a);
+ //console.log("return: "+a);
return a
}
else {
@@ -56,4 +49,48 @@ async function GetListChyron() {
return returnedList
}
-GetListChyron();
+async function GetListCommands() {
+ returnedList = await GetList("Commands");
+ var obj_main = JSON.parse(returnedList);
+ console.log(returnedList);
+ console.log(obj_main);
+ console.log(typeof obj_main["message"])
+
+ console.log(obj_main["message"]);
+ obj_temp = JSON.parse(obj_main["message"]);
+
+ searchPattern = "(?<='command': ')[^]'+";
+ searchPattern = "(?<='command': ')[^']+"
+ newString = returnedList.search(searchPattern);
+ console.log(newString)
+ //obj_temp = JSON.parse(obj_main["message"]);
+ for (var x in Object.keys(obj_main)) {
+ console.log(x);
+ }
+ console.log(obj_main['message']['!lights']);
+ return returnedList
+}
+
+var returnedCommands = GetListCommands();
+
+
+async function GetListRewards() {
+ returnedList = await GetList("Rewards");
+ obj = JSON.parse(returnedList);
+ console.log(obj["message"])
+ return returnedList
+}
+
+async function GetListTimers() {
+ returnedList = await GetList("Timers");
+ obj = JSON.parse(returnedList);
+ console.log(obj["message"])
+ return returnedList
+}
+
+async function GetListTextSources() {
+ returnedList = await GetList("TextSources");
+ obj = JSON.parse(returnedList);
+ console.log(obj["message"])
+ return returnedList
+}
\ No newline at end of file
diff --git a/user_client_module_InfoLookup.py b/user_client_module_InfoLookup.py
new file mode 100644
index 0000000..1a40662
--- /dev/null
+++ b/user_client_module_InfoLookup.py
@@ -0,0 +1,51 @@
+from enum import Enum
+from os import F_OK
+import tempText_Module
+import time
+import config as config
+
+import flask
+from flask import Flask, request, after_this_request
+
+import credentials
+
+import commands.loader as command_loader
+from commands.command_base import AbstractCommand
+
+from cooldowns import Cooldown_Module
+
+import utilities_script as utility
+
+import chyron_module
+import timers_module
+
+import random
+
+import os
+import praxis_logging
+praxis_logger_obj = praxis_logging.praxis_logger()
+praxis_logger_obj.init(os.path.basename(__file__))
+praxis_logger_obj.log("\n -Starting Logs: " + os.path.basename(__file__))
+
+api:Flask = Flask(__name__)
+api.config["DEBUG"] = True
+
+class Module_InfoLookup():
+ def __init__(self):
+ super().__init__()
+
+
+def init():
+ print("starting up... ",)
+
+@api.route('/')
+def bot_StatusIcon():
+ @after_this_request
+ def add_header(response):
+ response.headers.add('Access-Control-Allow-Origin', '*')
+ return response
+ return flask.make_response('Client Service: OK', 200)
+
+if __name__ == "__main__":
+ init()
+ api.run(host="0.0.0.0", port = 42063)
\ No newline at end of file
diff --git a/utilities_script.py b/utilities_script.py
index b79c4c0..c8a607d 100644
--- a/utilities_script.py
+++ b/utilities_script.py
@@ -56,6 +56,10 @@ def get_dir(selected_dir):
os.mkdir(dir)
return dir
+def contains_value(self, search: str, data:str):
+ contains = re.search(search, data)
+ return contains.group(0)
+
def contains_slur(input: str):
containsSlur: bool = False
parsedMessage = input.split(" ")
Services:
@@ -228,6 +242,14 @@