Skip to content

Commit

Permalink
feat: add sugaroid 'what is sugaroid ' to wiki.py
Browse files Browse the repository at this point in the history
  • Loading branch information
srevinsaju committed Feb 11, 2021
1 parent 9053881 commit 2b8fc67
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions sugaroid/brain/wiki.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,19 @@ def process(self, statement, additional_response_selection_parameters=None):
selected_statement.confidence = 1.0
selected_statement.emotion = emotion
return selected_statement
"""elif "up" in self.text.lower():
elif "sugaroid" in self.text or "Sugaroid" in self.text:
response = "I am Sugaroid. 😎"
selected_statement = SugaroidStatement(response, chatbot=True)
selected_statement.confidence = 1.0
selected_statement.emotion = emotion
return selected_statement
elif "up" in self.text or "Up" in self.text:
# FIXME will introduce a regression in future
response = random_response(WHATSUP)
selected_statement = SugaroidStatement(response, chatbot=True)
selected_statement.confidence = 1.0
selected_statement.emotion = emotion
return selected_statement"""
return selected_statement

else:
nlp = self.chatbot.lp
Expand Down

0 comments on commit 2b8fc67

Please sign in to comment.