Angel as concept derrives from bots
. It can be understood also as command line assistant
.
Docs
$ npm install organic-angel --save-dev
$ npm install angelabilities-package-scripts --save-dev
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)
})
}
$ npx angel what is the time