Skip to content

Commit

Permalink
Fix random_response in akinator
Browse files Browse the repository at this point in the history
  • Loading branch information
srevinsaju committed Mar 18, 2020
1 parent 04fce9c commit 8d5c850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sugaroid/brain/aki.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def process(self, statement, additional_response_selection_parameters=None):
emotion = Emotion.genie
if 'stop' in self.normalized:
self.chatbot.akinator = False
response = 'I am sorry. You quit the game abrubtly. {}'.format(HOPE_GAME_WAS_GOOD)
response = 'I am sorry. You quit the game abrubtly. {}'.format(random_response(HOPE_GAME_WAS_GOOD))
elif not self.chatbot.akinator:
self.chatbot.aki = SugaroidAkinator(self.chatbot)
response = self.chatbot.aki.start_game()
Expand Down

0 comments on commit 8d5c850

Please sign in to comment.