Hubocator
Execute hubot wrapper. Only javascript (without shell export) and support restarting hubot.
Installation
npm install coffee-script
npm install hubot
npm install hubocator
This module process executing wrapper and haven't hubot and coffee-script. Please install these module.
scripts
Copy scripts/hubocator_reset.coffee to your hubot scripts directory This script add function restart hubot through hubocator
Demo
Demo is here
git clone git://github.com/suisho/hubocator-demo.gitcd hubocator-demonpm installnode example.js
- Restarting example
hubocator_hubot> hubot restart
- Confirm example
hubocator_hubot> hubot show hubocator
usage
var hubocator = ;; // called hubot
environment
This value set on process.env
var hubocator = ;var env = "HUBOT_ENVIRONMENT" : "FOO";
args
This value is hubot arguments.
var hubocator = ;var env = "HUBOT_ENVIRONMENT" : "FOO"var args = "-a" "irc";//or;
args
can as object if you need
var hubocator = ;var env = "HUBOT_ENVIRONMENT" : "FOO"var args = "-a": "irc";
options
- coffeePath
- coffee script execute path
- hubotPath
- hubot execute path