add get_path from intent tag

This commit is contained in:
Mathieu B 2021-07-26 20:55:02 +02:00
parent f082471107
commit be01ac4b27

View File

@ -57,6 +57,11 @@ def get_patterns(intent_tag):
return {}
def get_path(intent_tag):
if exists(intent_tag):
return get_all_intents().get(intent_tag)
def get_response(intent_tag):
if exists(intent_tag):
responses = get_responses(intent_tag)