diff --git a/jarvis/skills/daily/date_and_time.zip b/jarvis/skills/daily/date_and_time.zip new file mode 100644 index 0000000..96c5057 Binary files /dev/null and b/jarvis/skills/daily/date_and_time.zip differ diff --git a/jarvis/skills/daily/date_and_time/__init__.py b/jarvis/skills/daily/date_and_time/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/jarvis/skills/daily/date_and_time/info.json b/jarvis/skills/daily/date_and_time/info.json deleted file mode 100644 index c20f3f3..0000000 --- a/jarvis/skills/daily/date_and_time/info.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "Date and Time", - "languages": [ - "FR-FR", - "EN-EN" - ], - "intents": [ - "what_time_is_it", - "what_day_is_it" - ], - "variables": [ - "time", - "day" - ] -} \ No newline at end of file diff --git a/jarvis/skills/daily/date_and_time/intent.py b/jarvis/skills/daily/date_and_time/intent.py deleted file mode 100644 index a5e5496..0000000 --- a/jarvis/skills/daily/date_and_time/intent.py +++ /dev/null @@ -1,30 +0,0 @@ -import time -from datetime import datetime - -from jarvis.utils import intents_utils, config_utils - - -def what_time_is_it(): - tag = 'what_time_is_it' - response = intents_utils.get_response(tag) - - current_time = time.localtime() - - if config_utils.get_in_config("12HOURS-FORMAT"): - response = response.replace('{time}', time.strftime("%I:%M %p", current_time)) - else: - response = response.replace('{time}', time.strftime("%H:%M", current_time)) - - return response - - -def what_day_is_it(): - tag = 'what_day_is_it' - response = intents_utils.get_response(tag) - - day_number = datetime.today().weekday() - lang_json = intents_utils.get_lang_for_intent('what_day_is_it')['others']['days_of_week'] - - response = response.replace('{day}', lang_json[str(day_number)]) - - return response diff --git a/jarvis/skills/daily/date_and_time/lang/en-en.json b/jarvis/skills/daily/date_and_time/lang/en-en.json deleted file mode 100644 index 724b03d..0000000 --- a/jarvis/skills/daily/date_and_time/lang/en-en.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "what_time_is_it": { - "patterns": [ - "What time is it", - "Show me the time", - "Tell me the time", - "What's the time", - "What is the time" - ], - "responses": [ - "It is {time}", - "It's {time} right now", - "The time is {time}" - ] - }, - "what_day_is_it": { - "patterns": [ - "What's the day", - "Tell me the day of the week. ", - "What day are we" - ], - "responses": [ - "{day}", - "Today is {day}" - ] - }, - "others": { - "days_of_week": { - "0": "Monday", - "1": "Tuesday", - "2": "Wednesday", - "3": "Thursday", - "4:": "Friday", - "5": "Saturday", - "6": "Sunday" - } - } -} \ No newline at end of file diff --git a/jarvis/skills/daily/date_and_time/lang/fr-fr.json b/jarvis/skills/daily/date_and_time/lang/fr-fr.json deleted file mode 100644 index 62a399b..0000000 --- a/jarvis/skills/daily/date_and_time/lang/fr-fr.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "what_time_is_it": { - "patterns": [ - "Il est quelle heure", - "C'est quelle heure", - "On vit quelle heure", - "Quelle heure est-il" - ], - "responses": [ - "Il est {time}", - "Il est actuellement {time}" - ] - }, - "what_day_is_it": { - "patterns": [ - "On est quel jour", - "Quel jour est-on", - "C'est quel jour aujourd'hui" - ], - "responses": [ - "Nous somme {day}", - "Aujourd'hui nous sommes {day}", - "On est {day}", - "{day}" - ] - }, - "others": { - "days_of_week": { - "0": "Lundi", - "1": "Mardi", - "2": "Mercredi", - "3": "Jeudi", - "4:": "Vendredi", - "5": "Samedi", - "6": "Dimanche" - } - } -} \ No newline at end of file