removed old date_and_time skill (backup to .zip)

This commit is contained in:
Mathieu 2021-09-08 14:52:26 +02:00
parent 2d2d7dbb74
commit 232ba70bbf
6 changed files with 0 additions and 121 deletions

Binary file not shown.

View File

@ -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"
]
}

View File

@ -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

View File

@ -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"
}
}
}

View File

@ -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"
}
}
}