1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-12-25 09:44:22 +03:00

refactor(skill/who_am_i): from module to skill

This commit is contained in:
louistiti 2022-02-21 23:13:26 +08:00
parent b19bb0e3eb
commit c658425913
No known key found for this signature in database
GPG Key ID: 7ECA3DD523793FE6
10 changed files with 73 additions and 0 deletions

View File

@ -35,6 +35,11 @@
"route": "/api/action/leon/welcome/run",
"params": []
},
{
"method": "GET",
"route": "/api/action/leon/who_am_i/run",
"params": []
},
{
"method": "POST",
"route": "/api/action/productivity/todo_list/create_list",

View File

View File

View File

@ -0,0 +1,21 @@
{
"actions": {
"run": {
"utterance_samples": [
"Who are you?",
"How they call you?",
"What's your name?",
"Tell me who you are",
"Introduce yourself",
"I want to know you"
]
}
},
"answers": {
"introduction": [
"I'm your daily personal assistant. I have been created by Louis. I'm very happy to serve you everyday.",
"The question is, who are you? I'm kidding! I'm your daily personal assistant. Louis created me to make your life easier.",
"Firstly, I'm not a criminal as you might relatively think about a popular movie. Secondly, Louis is the guy who gave me life. Thirdly, I'm your personal assistant and I'm very glad to help you."
]
}
}

View File

@ -0,0 +1,21 @@
{
"actions": {
"run": {
"utterance_samples": [
"Qui es-tu ?",
"Comment t'appelles-tu ?",
"Comment tu t'appelles ?",
"Dis-moi qui tu es",
"Présente-toi",
"Je veux te connaître"
]
}
},
"answers": {
"introduction": [
"Je suis votre assistant personnel quotidien. J'ai été créé par Louis. Je suis heureux de vous servir chaque jour.",
"La question est plutôt qui êtes-vous ? Je plaisante ! Je suis votre assistant personnel quotidien. Louis m'a conçu pour rendre votre vie plus facile.",
"Premièrement, je ne suis pas un criminel comme vous pouvez le penser au sujet d'un film populaire. Deuxièmement, Louis est celui qui m'a donné la vie. Troisièmement, je suis votre assistant personnel et je suis honoré de vous aider."
]
}
}

View File

@ -0,0 +1,11 @@
{
"name": "Who Am I",
"bridge": "python",
"version": "1.0.0",
"description": "Leon introduces himself.",
"author": {
"name": "Louis Grenard",
"email": "louis.grenard@gmail.com",
"url": "https://github.com/louistiti"
}
}

View File

@ -0,0 +1,9 @@
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import utils
def run(string, entities):
"""Leon introduces himself"""
return utils.output('end', 'introduction', utils.translate('introduction'))

View File

@ -0,0 +1,6 @@
{
"configurations": {
"options": {},
"credentials": {}
}
}

View File

View File