started example skill
This commit is contained in:
parent
7152a73031
commit
95db3f0cee
15
jarvis/skills/daily/example/__init__.py
Normal file
15
jarvis/skills/daily/example/__init__.py
Normal file
@ -0,0 +1,15 @@
|
||||
from jarvis.skills import Skill, SkillRegistering
|
||||
from jarvis.skills.decorators import intent_file_handler
|
||||
|
||||
|
||||
class ExampleSkill(Skill, metaclass=SkillRegistering):
|
||||
def __init__(self, data=dict):
|
||||
super().__init__("ExampleSkill", data)
|
||||
|
||||
@intent_file_handler("example_intent.intent", "ExampleIntent")
|
||||
def handle_example_intent(self, data):
|
||||
pass
|
||||
|
||||
|
||||
def create_skill(data):
|
||||
return ExampleSkill(data)
|
Reference in New Issue
Block a user