Awesome
organic-angel v0.7.0
Angel as concept derrives from bots
. It can be understood also as command line assistant
.
Docs
example in directory/myproject
0. install organic-angel
$ npm install organic-angel --save-dev
$ npm install angelabilities-package-scripts --save-dev
1. create ./scripts/time.js
file
module.exports = async function(angel){
angel.on("what is the :topic", async function(angel){
if(angel.cmdData.topic == "time")
console.log("The time is "+(new Date()).toString())
else
console.error("sorry, not recognized topic " + angel.cmdData.topic)
})
}
<br />
Finally at the command line
$ npx angel what is the time