Added "searching" dialog to wikipedia skill
This commit is contained in:
parent
14da3bc8f2
commit
3c95978fc9
@ -10,7 +10,7 @@ class WikipediaSkill(Skill, metaclass=SkillRegistering):
|
|||||||
@intent_file_handler("search.wikipedia.intent", "WikipediaQueryIntent")
|
@intent_file_handler("search.wikipedia.intent", "WikipediaQueryIntent")
|
||||||
def handle_wikipedia_query_intent(self, data):
|
def handle_wikipedia_query_intent(self, data):
|
||||||
if 'query' in data:
|
if 'query' in data:
|
||||||
# TODO : say somethink like "i'm searching..."
|
self.speak_dialog_threaded("wikipedia_searching")
|
||||||
print("[INTENT RESULT] : " + wikipedia.page_summary(query=data['query']))
|
print("[INTENT RESULT] : " + wikipedia.page_summary(query=data['query']))
|
||||||
else:
|
else:
|
||||||
# TODO: fallback to duckduckgo or wolfram alpha
|
# TODO: fallback to duckduckgo or wolfram alpha
|
||||||
|
Reference in New Issue
Block a user