A tool for developing nodes on the Lightning In A Bot platform
$ sudo npm install liab -g
- Node v >= 4
There are 3 commands: create, init, and upload.
Running the init command creates the necessary resources on the server. When the command is run successfully from within a local node directory, it will return a node Id from the server and add it to the .env file. This Id is required in order to upload code updates.
Runnin the upload command creates the necessary resources locally that are the send to the server. You may use this command is used to update nodes as well. Make sure there is a valid node ID in the config.json file along with valid inputs for updatable keys (code will be updated so long as changes are saved). An example config.json:
{
"id": "56ac2407dbc0091100e9a524",
"expressions": ["An expression", "another expression"],
"description": "This is a description",
"keys": [
{"name":"count"},
{
"name":"datetime",
"type":"datetime"
},
{
"name":"is_plural",
"type":"boolean"
}
]
}