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/entertainement/weather/__init__.py

16 lines
425 B
Python

from jarvis.skills import SkillRegistering, Skill
from jarvis.skills.decorators import intent_file_handler
class WeatherSkill(Skill, metaclass=SkillRegistering):
def __init__(self, data=dict):
super().__init__("WeatherSkill", data)
@intent_file_handler("handle_weather.intent", "HandleWeatherIntent")
def handle_weather(self, data):
pass
def create_skill(data):
return WeatherSkill(data)