1
0
mirror of https://github.com/MarkParker5/STARK.git synced 2025-11-23 21:34:45 +02:00

add Response class, recursive voice assistant algorithm

This commit is contained in:
MarkParker5
2021-02-21 21:06:00 +02:00
parent 96bb146822
commit 792bede347
17 changed files with 147 additions and 186 deletions

View File

@@ -1,12 +1,9 @@
from .SmallTalk import *
from Command import Response
################################################################################
def method(params):
voice = text = 'Привет'
return {
'type': 'simple',
'text': text,
'voice': voice,
}
return Response(text = text, voice = voice)
patterns = ['* привет* *',]
hello = SmallTalk('Hello', {}, patterns)