add new module: generic-command-processor
This commit is contained in:
parent
807dee5af1
commit
a530272408
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"s": "Головна сторінка сервера: http://10.1.1.1:12010/"
|
||||
}
|
|
@ -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]
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"version": 1,
|
||||
"index_file": "index.py",
|
||||
"start_on_boot": true,
|
||||
"alias": "generic-command-processor"
|
||||
}
|
Loading…
Reference in New Issue