diff --git a/example/actions.py b/example/actions.py index 10925bf8844376f188506cd787dac0d34d8c6e09..cbbd56866ddbbd65899ef8dacb853b705c1a0203 100644 --- a/example/actions.py +++ b/example/actions.py @@ -31,9 +31,8 @@ class ActionUtterBirthplace(Action): def run(self, dispatcher, tracker, domain): person = tracker.get_slot('physicist') birthplace = tracker.get_slot('birthplace') - dispatcher.utter_message(birthplace) if birthplace == None: - dispatcher.utter_message("Error: Birthplace of " + person + "not known.") + dispatcher.utter_message("Error: Birthplace of " + person + " not known.") else: dispatcher.utter_message("The birthplace of " + person + " is " + birthplace + ".") return [] @@ -43,7 +42,7 @@ class ActionUtterBirthplace(Action): # class ActionSearchDayOfDeath(Action): def name(self): - return 'action_search_birthplace' + return 'action_search_day_of_death' def run(self, dispatcher, tracker, domain): import csv