From 95db3f0ceeff71dde0598767b779e84d67e28831 Mon Sep 17 00:00:00 2001 From: Mathieu B Date: Mon, 2 Aug 2021 11:57:38 +0200 Subject: [PATCH] started example skill --- jarvis/skills/daily/example/__init__.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 jarvis/skills/daily/example/__init__.py diff --git a/jarvis/skills/daily/example/__init__.py b/jarvis/skills/daily/example/__init__.py new file mode 100644 index 0000000..1d1b678 --- /dev/null +++ b/jarvis/skills/daily/example/__init__.py @@ -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)