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:
parent
a853de4558
commit
b0d4bf6e1f
@ -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'))
|
@ -1,6 +0,0 @@
|
||||
{
|
||||
"configurations": {
|
||||
"options": {},
|
||||
"credentials": {}
|
||||
}
|
||||
}
|
@ -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'))
|
@ -1,6 +0,0 @@
|
||||
{
|
||||
"configurations": {
|
||||
"options": {},
|
||||
"credentials": {}
|
||||
}
|
||||
}
|
@ -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": {
|
||||
|
@ -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'))
|
@ -1,6 +0,0 @@
|
||||
{
|
||||
"configurations": {
|
||||
"options": {},
|
||||
"credentials": {}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user