1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-11-23 20:12:08 +03:00

refactor(skill/rochambeau): move handsign global entity to skill enum entity

This commit is contained in:
louistiti 2022-07-10 20:07:29 +08:00
parent 905d248ebf
commit f9865b71c3
No known key found for this signature in database
GPG Key ID: 7ECA3DD523793FE6
3 changed files with 22 additions and 18 deletions

View File

@ -1,13 +0,0 @@
{
"options": {
"ROCK": {
"synonyms": ["rock", "stone"]
},
"PAPER": {
"synonyms": ["paper"]
},
"SCISSORS": {
"synonyms": ["scissors"]
}
}
}

View File

@ -44,9 +44,12 @@
"params": []
},
{
"method": "GET",
"method": "POST",
"route": "/api/action/games/rochambeau/play",
"params": []
"params": [
"handsign"
],
"entitiesType": "trim"
},
{
"method": "GET",

View File

@ -32,6 +32,23 @@
"Yes",
"No thanks"
],
"entities": [
{
"type": "enum",
"name": "handsign",
"options": {
"ROCK": {
"synonyms": ["rock", "stone"]
},
"PAPER": {
"synonyms": ["paper"]
},
"SCISSORS": {
"synonyms": ["scissors"]
}
}
}
],
"next_action": "rematch"
},
"rematch": {
@ -44,9 +61,6 @@
}
}
},
"entities": {
"handsign": "global-entities/handsign.json"
},
"answers": {
"ready": [
"Let's get started!"