No description, website, or topics provided.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
docs
lib
tests
.gitignore
CHANGELOG.md
README.md
index.js
package.json

README.md

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

example in directory/myproject

0. install organic-angel

$ npm install organic-angel --save-dev

1. install package-scripts ability

$ npm install angelabilities-package-scripts --save-dev

2. create ./scripts/time.js file

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