1
1
mirror of https://github.com/leon-ai/leon.git synced 2025-01-01 21:26:08 +03:00

refactor: remove src/ when skills are dialog type

This commit is contained in:
louistiti 2022-02-28 21:32:35 +08:00
parent a853de4558
commit b0d4bf6e1f
No known key found for this signature in database
GPG Key ID: 0A1C3B043E70C77D
10 changed files with 1 additions and 54 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -1,7 +1,7 @@
{
"name": "Partner Assistant",
"type": "dialog",
"bridge": "python",
"bridge": null,
"version": "1.0.0",
"description": "Leon tells about other virtual assistants.",
"author": {

View File

@ -1,17 +0,0 @@
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import utils
def run(string, entities):
"""Leon tells you about other personal assistants"""
partner = ''
# Find entities
for item in entities:
if item['entity'] == 'partner_assistant':
partner = item['option'].lower()
return utils.output('end', 'success', utils.translate(partner.replace(' ', '_')))
return utils.output('end', 'unknown', utils.translate('unknown'))

View File

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