Files
Superalgos/Projects/Social-Bots/Schemas/App-Schema/social-bot-command.json
T

54 lines
1.3 KiB
JSON

{
"type": "Social Bot Command",
"editors": {
"config": true
},
"menuItems": [
{
"action": "Configure",
"actionFunction": "uiObject.configEditor.activate",
"label": "Configure",
"iconPathOn": "configuration",
"iconPathOff": "configuration",
"actionProject": "Foundations"
},
{
"action": "Add UI Object",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "formula",
"label": "Add Formula",
"relatedUiObject": "Formula",
"actionFunction": "payload.executeAction",
"actionProject": "Foundations"
},
{
"action": "Delete UI Object",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
"iconPathOn": "delete-entity",
"iconPathOff": "delete-entity",
"actionFunction": "payload.executeAction",
"actionProject": "Foundations"
}
],
"initialValues": {
"config": "{ \n\"name\": \"Enter the name of the command without a leading slash\"\n}"
},
"addLeftIcons": true,
"level": 4,
"attachingRules": {
"compatibleTypes": "->Telegram Bot->"
},
"childrenNodesProperties": [
{
"name": "formula",
"type": "node",
"childType": "Formula",
"autoAdd": true,
"project": "Foundations"
}
],
"propertyNameAtParent": "socialBotCommand"
}