add new module: generic-command-processor

This commit is contained in:
dymik739 2023-10-01 22:34:39 +03:00
parent 807dee5af1
commit a530272408
3 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,3 @@
{
"s": "Головна сторінка сервера: http://10.1.1.1:12010/"
}

View File

@ -0,0 +1,6 @@
command_storage = json.loads(open(self.path + "data.json").read())
received_command = self.MESSAGE.text[1:]
if received_command in command_storage:
self.RESPONSE = command_storage[received_command]

View File

@ -0,0 +1,6 @@
{
"version": 1,
"index_file": "index.py",
"start_on_boot": true,
"alias": "generic-command-processor"
}