hubocator
Call hubot on javascript
Last updated 7 years ago by suisho .
BSD · Repository · Original npm · Tarball · package.json
$ cnpm install hubocator 
SYNC missed versions from official npm registry.

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.git
cd hubocator-demo
npm install
node example.js
  • Restarting example
hubocator_hubot> hubot restart
  • Confirm example
hubocator_hubot> hubot show hubocator

usage

var hubocator = require("hubocator");
hubocator(); // called hubot

environment

This value set on process.env

var hubocator = require("hubocator");
var env = {
  "HUBOT_ENVIRONMENT" : "FOO"
}
hubocator(env);

args

This value is hubot arguments.

var hubocator = require("hubocator");
var env = {
  "HUBOT_ENVIRONMENT" : "FOO"
}
var args = [
  "-a", "irc"
]
hubocator(env,args);
//or
hubocator(args);

args can as object if you need

var hubocator = require("hubocator");
var env = {
  "HUBOT_ENVIRONMENT" : "FOO"
}
var args = {
  "-a": "irc"
}
hubocator(env,args);

options

  • coffeePath
    • coffee script execute path
  • hubotPath
    • hubot execute path

Current Tags

  • 0.1.2                                ...           latest (7 years ago)

6 Versions

  • 0.1.2                                ...           7 years ago
  • 0.1.1                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
  • 0.0.3                                ...           7 years ago
  • 0.0.2                                ...           7 years ago
  • 0.0.1                                ...           7 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 3
Dependencies (2)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |