Skip to content

node-organic/organic-angel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
  })
}

Finally at the command line

$ npx angel what is the time

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •