organic-angel v0.7.0
Angel as concept derrives from bots
. It can be understood also as command line assistant
.
Docs
directory/myproject
example in 0. install organic-angel
$ npm install organic-angel --save-dev
$ npm install angelabilities-package-scripts --save-dev
./scripts/time.js
file
1. create 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)
})
}
Finally at the command line
$ npx angel what is the time