from taktyka_dialogu import Questions welcome = 'Witaj!' unknown = "Nie rozumiem." end = "Żegnaj!" help = "Obsługuję przekazywanie informacji z systemu GitHub - repozytoria, pull requesty, issue, powiadomienia." def generator_jezyka_nautalnego(frame, question, state): if question != Questions.NONE: #ask additional questions if question == Questions.TIME: print("Z jakiego czasu?") elif len(state) > 2 and state[-2]['questions'] != Questions.NONE and frame['act'] != "": print("Przyjęto odpowiedź na pytanie.") else: #dont ask questions if frame['act'] == "hello": print(welcome) elif frame['act'] == "bye": print(end) elif frame['act'] == "pomoc": print(help) else: print(unknown)