This repository has been archived on 2023-06-09. You can view files and clone it, but cannot push or open issues or pull requests.
jarvis-server/jarvis/skills/daily/example/__init__.py

16 lines
426 B
Python
Raw Normal View History

2021-08-02 11:57:38 +02:00
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)