Added "searching" dialog to wikipedia skill

This commit is contained in:
Mathieu 2021-09-14 09:25:38 +02:00
parent 14da3bc8f2
commit 3c95978fc9
2 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ class WikipediaSkill(Skill, metaclass=SkillRegistering):
@intent_file_handler("search.wikipedia.intent", "WikipediaQueryIntent")
def handle_wikipedia_query_intent(self, 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']))
else:
# TODO: fallback to duckduckgo or wolfram alpha