Angel v0.3.2
Angel derrives as concept from bots
, like hubot.
However it is for command line. It can be understood also as command line assistant
.
Docs
Existing abilities
Existing scripts
directory/myproject
example in 0. install organic-angel
$ npm install organic-angel --save-dev
1. install package-scripts ability
$ npm install angelabilities-package-scripts --save-dev
./scripts/time.js
file
2. create module.exports = function(angel){
angel.on("what is the :topic", function(angel, next){
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
$ node ./node_modules/.bin/angel what is the time
or if you have angel global installed ($ npm install organic-angel -g
)
$ angel what is the time