started working on timer skill
This commit is contained in:
parent
95db3f0cee
commit
fd1a6e1afc
16
jarvis/skills/daily/timer/__init__.py
Normal file
16
jarvis/skills/daily/timer/__init__.py
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
from jarvis.skills import Skill, SkillRegistering
|
||||||
|
from jarvis.skills.decorators import intent_file_handler
|
||||||
|
|
||||||
|
|
||||||
|
class TimerSkill(Skill, metaclass=SkillRegistering):
|
||||||
|
def __init__(self, data=dict):
|
||||||
|
super().__init__("TimerSkill", data)
|
||||||
|
|
||||||
|
@intent_file_handler("start_timer.intent", "StartTimerIntent")
|
||||||
|
def handle_start_timer(self, data):
|
||||||
|
print(data)
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def create_skill(data):
|
||||||
|
return TimerSkill(data)
|
1
jarvis/skills/daily/timer/regex/fr-fr/only_time.rx
Normal file
1
jarvis/skills/daily/timer/regex/fr-fr/only_time.rx
Normal file
@ -0,0 +1 @@
|
|||||||
|
(?:de|pour dans|pour) (?<TimeOnly>.+)
|
1
jarvis/skills/daily/timer/regex/fr-fr/time_and_name.rx
Normal file
1
jarvis/skills/daily/timer/regex/fr-fr/time_and_name.rx
Normal file
@ -0,0 +1 @@
|
|||||||
|
(?:de|pour dans|pour) (?<Time>.+)(?:(?:nommé|appelé|qui s'appelle|et appelle le) (?<Name>.*)?)
|
2
jarvis/skills/daily/timer/vocab/fr-fr/start_timer.intent
Normal file
2
jarvis/skills/daily/timer/vocab/fr-fr/start_timer.intent
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
(Mets|Lance) un minuteur (de|pour dans|pour) {amount} {time_unit}
|
||||||
|
Lance un minuteur de {amount} {time_unit} (nommé|appelé|qui s'appelle|et appelle le) {name}
|
6
jarvis/skills/daily/timer/vocab/fr-fr/time_unit.entity
Normal file
6
jarvis/skills/daily/timer/vocab/fr-fr/time_unit.entity
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
seconde
|
||||||
|
secondes
|
||||||
|
minute
|
||||||
|
minutes
|
||||||
|
heure
|
||||||
|
heures
|
Reference in New Issue
Block a user