Skip to content

Instantly share code, notes, and snippets.

@suisho
Last active December 12, 2015 09:28
Show Gist options
  • Save suisho/4751363 to your computer and use it in GitHub Desktop.
Save suisho/4751363 to your computer and use it in GitHub Desktop.
Call hubot only javascript
// set package.json and `npm init`
// or
// $npm install init;
// $npm install hubot --save
// $npm install coffee-script --save
var fork = require('child_process').fork
var fs = require("fs")
var env = {
//"HUBOT_IRC_SERVER" : "",
}
var coffee = "node_modules/coffee-script/bin/coffee"
var args = [
"node_modules/hubot/bin/hubot"
]
var hubot = fork(coffee, args, {
env : env
})
{
"name": "",
"version": "0.0.0",
"main": "index.js",
"dependencies": {
"hubot": "~2.4.6",
"coffee-script": "~1.4.0",
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment