You've already forked STARK
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:
@ -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)
|
||||
|
Reference in New Issue
Block a user