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

@ -1,5 +1,5 @@
from .SmartHome import *
from ..Command import Response, Command
from ArchieCore import Response, Command
import Text2Speech
import os
################################################################################
@ -19,7 +19,6 @@ def method(params):
Text2Speech.Engine().generate(voice).speak()
return Response(text = text, voice = voice)
keywords = {}
patterns = []
alarmclock = SmartHome('alarmclock', keywords, patterns)
alarmclock = SmartHome('alarmclock', patterns)
alarmclock.setStart(method)