Last active
December 12, 2015 09:28
-
-
Save suisho/4751363 to your computer and use it in GitHub Desktop.
Call hubot only javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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