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