2022-05-25 12:52:02 +02:00
|
|
|
from taktyka_dialogu import Questions
|
2022-04-20 09:14:16 +02:00
|
|
|
|
|
|
|
welcome = 'Witaj!'
|
|
|
|
unknown = "Nie rozumiem."
|
2022-05-25 12:52:02 +02:00
|
|
|
end = "Żegnaj!"
|
2022-06-01 12:22:40 +02:00
|
|
|
help = "Obsługuję przekazywanie informacji z systemu GitHub - repozytoria, pull requesty, issue, powiadomienia."
|
2022-06-01 12:53:12 +02:00
|
|
|
#todo dodać więcej odpowiedzi
|
2022-04-20 09:14:16 +02:00
|
|
|
|
2022-06-01 12:53:12 +02:00
|
|
|
#todo generator powinien przyjmować zwrotkę z taktyki dialogu
|
2022-06-01 12:22:40 +02:00
|
|
|
def generator_jezyka_nautalnego(frame, question, state):
|
2022-05-25 12:52:02 +02:00
|
|
|
if question != Questions.NONE:
|
|
|
|
#ask additional questions
|
|
|
|
if question == Questions.TIME:
|
|
|
|
print("Z jakiego czasu?")
|
2022-06-01 12:22:40 +02:00
|
|
|
|
2022-05-25 12:52:02 +02:00
|
|
|
else:
|
|
|
|
#dont ask questions
|
|
|
|
if frame['act'] == "hello":
|
|
|
|
print(welcome)
|
|
|
|
elif frame['act'] == "bye":
|
|
|
|
print(end)
|
2022-06-01 12:22:40 +02:00
|
|
|
elif frame['act'] == "pomoc":
|
|
|
|
print(help)
|
2022-04-20 09:14:16 +02:00
|
|
|
else:
|
2022-05-25 12:52:02 +02:00
|
|
|
print(unknown)
|