Systemy_dialogowe/system_mockup/generator_jezyka_nautalnego.py
2022-05-25 12:52:02 +02:00

20 lines
518 B
Python

from taktyka_dialogu import Questions
welcome = 'Witaj!'
unknown = "Nie rozumiem."
end = "Żegnaj!"
def generator_jezyka_nautalnego(frame, question):
if question != Questions.NONE:
#ask additional questions
if question == Questions.TIME:
print("Z jakiego czasu?")
else:
#dont ask questions
if frame['act'] == "hello":
print(welcome)
elif frame['act'] == "bye":
print(end)
else:
print(unknown)