forked from MycroftAI/mycroft-core
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
132 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from ovos_workshop.skills.common_query_skill import CommonQuerySkill, CQSMatchLevel | ||
|
||
|
||
class UnWikiSkill(CommonQuerySkill): | ||
|
||
# common query integration | ||
def CQS_match_query_phrase(self, utt): | ||
response = "42" | ||
return (utt, CQSMatchLevel.EXACT, response, | ||
{'query': utt, 'answer': response}) | ||
|
||
def CQS_action(self, phrase, data): | ||
""" If selected show gui """ | ||
self.speak("selected") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env python3 | ||
from setuptools import setup | ||
|
||
# skill_id=package_name:SkillClass | ||
PLUGIN_ENTRY_POINT = 'ovos-skill-fakewiki.openvoiceos=ovos_skill_fakewiki:UnWikiSkill' | ||
|
||
setup( | ||
# this is the package name that goes on pip | ||
name='ovos-skill-fakewiki', | ||
version='0.0.1', | ||
description='this is a OVOS test skill for the common query framework', | ||
url='https://github.com/OpenVoiceOS/ovos-core', | ||
author='JarbasAi', | ||
author_email='jarbasai@mailfence.com', | ||
license='Apache-2.0', | ||
package_dir={"ovos_skill_fakewiki": ""}, | ||
package_data={'ovos_skill_fakewiki': ['locale/*']}, | ||
packages=['ovos_skill_fakewiki'], | ||
include_package_data=True, | ||
install_requires=["ovos-workshop"], | ||
keywords='ovos skill plugin', | ||
entry_points={'ovos.plugin.skill': PLUGIN_ENTRY_POINT} | ||
) |