1
0
mirror of https://github.com/MarkParker5/STARK.git synced 2025-07-12 22:50:22 +02:00

Partially new flow. Remove Callback, create CommandsManager, create Core

This commit is contained in:
MarkParker5
2021-10-24 22:26:09 +03:00
parent a44580b2dc
commit 7a2cfaa59b
42 changed files with 287 additions and 390 deletions

View File

@ -10,9 +10,8 @@ def method(params):
voice = text = ''
return Response(text = text, voice = voice)
keywords = {}
patterns = ['* (открыть|открой) (окно|окна) *', '* (подними|поднять) (шторы|роллеты) *']
window_open = SmartHome('window_open', keywords, patterns)
window_open = SmartHome('window_open', patterns)
window_open.setStart(method)
################################################################################
@ -25,7 +24,6 @@ def method(params):
voice = text = ''
return Response(text = text, voice = voice)
keywords = {}
patterns = ['* (закрыть|закрой) (окно|окна) *', '* (опусти|опустить) (шторы|роллеты) *']
window_close = SmartHome('window_close', keywords, patterns)
window_close = SmartHome('window_close', patterns)
window_close.setStart(method)