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:
parent
905d248ebf
commit
f9865b71c3
@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
"options": {
|
|
||||||
"ROCK": {
|
|
||||||
"synonyms": ["rock", "stone"]
|
|
||||||
},
|
|
||||||
"PAPER": {
|
|
||||||
"synonyms": ["paper"]
|
|
||||||
},
|
|
||||||
"SCISSORS": {
|
|
||||||
"synonyms": ["scissors"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -44,9 +44,12 @@
|
|||||||
"params": []
|
"params": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"method": "GET",
|
"method": "POST",
|
||||||
"route": "/api/action/games/rochambeau/play",
|
"route": "/api/action/games/rochambeau/play",
|
||||||
"params": []
|
"params": [
|
||||||
|
"handsign"
|
||||||
|
],
|
||||||
|
"entitiesType": "trim"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"method": "GET",
|
"method": "GET",
|
||||||
|
@ -32,6 +32,23 @@
|
|||||||
"Yes",
|
"Yes",
|
||||||
"No thanks"
|
"No thanks"
|
||||||
],
|
],
|
||||||
|
"entities": [
|
||||||
|
{
|
||||||
|
"type": "enum",
|
||||||
|
"name": "handsign",
|
||||||
|
"options": {
|
||||||
|
"ROCK": {
|
||||||
|
"synonyms": ["rock", "stone"]
|
||||||
|
},
|
||||||
|
"PAPER": {
|
||||||
|
"synonyms": ["paper"]
|
||||||
|
},
|
||||||
|
"SCISSORS": {
|
||||||
|
"synonyms": ["scissors"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
"next_action": "rematch"
|
"next_action": "rematch"
|
||||||
},
|
},
|
||||||
"rematch": {
|
"rematch": {
|
||||||
@ -44,9 +61,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"entities": {
|
|
||||||
"handsign": "global-entities/handsign.json"
|
|
||||||
},
|
|
||||||
"answers": {
|
"answers": {
|
||||||
"ready": [
|
"ready": [
|
||||||
"Let's get started!"
|
"Let's get started!"
|
||||||
|
Loading…
Reference in New Issue
Block a user