Don't override matches_condition in ResponseEvent to run stop_conversation. Use the flag play_response=False on plugin level to bypass the response instead

This commit is contained in:
Fabio Manganiello 2019-11-26 15:52:27 +01:00
parent 9fdf13f8e7
commit abbfe517de
1 changed files with 0 additions and 12 deletions

View File

@ -70,18 +70,6 @@ class ResponseEvent(ConversationEndEvent):
super().__init__(*args, response_text=response_text, **kwargs)
def matches_condition(self, condition):
"""
Overrides matches condition, and stops the conversation to prevent the
default assistant response if the event matched some event hook condition
"""
result = super().matches_condition(condition)
if result.is_match and self._assistant:
self._assistant.stop_conversation()
return result
class NoResponseEvent(ConversationEndEvent):
"""