$ ls Procfile bin hubot-scripts.json package.json README.md external-scripts.json node_modules scripts
こんなエラーが出たときは
/root/.config へのアクセス権限がないと言われています。
1 2 3 4 5 6 7 8 9 10 11
Error: EACCES, permission denied '/root/.config' at Object.fs.mkdirSync (fs.js:654:18) at sync (/usr/lib/node_modules/yo/node_modules/configstore/node_modules/mkdirp/index.js:71:13) at Function.sync (/usr/lib/node_modules/yo/node_modules/configstore/node_modules/mkdirp/index.js:77:24) at Object.create.all.get (/usr/lib/node_modules/yo/node_modules/configstore/index.js:38:13) at Object.Configstore (/usr/lib/node_modules/yo/node_modules/configstore/index.js:27:44) at new Insight (/usr/lib/node_modules/yo/node_modules/insight/lib/index.js:37:34) at Object.<anonymous> (/usr/lib/node_modules/yo/lib/cli.js:156:11) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32)
# Description: # hubot basic command. # # Commands: # hubot who are you - I'm hubot! # hubot hello # hubot who am I - You are <user_name> # hubot what is this <*> - This is <$1>
robot.respond /who am I/i, (msg) -> msg.send "You are #{msg.message.user.name}"
robot.respond /what is this (.*)/i, (msg) -> msg.send "This is #{msg.match[1]}"
run hubot
sudo is required and in order to access http port. You will require hubot integrated with outside site - ex) JIRA etc…
1 2 3 4 5
$ sudo bin/hubot -a slack
[Wed Jan 13 2016 13:43:08 GMT+0900 (JST)] INFO Connecting... [Wed Jan 13 2016 13:43:10 GMT+0900 (JST)] INFO Logged in as hubot of RUBY GROUPE, but not yet connected [Wed Jan 13 2016 13:43:11 GMT+0900 (JST)] INFO Slack client now connected
no sudo execution result …(>_<) Error occured!!
1 2 3 4 5 6 7 8 9 10 11 12 13
$ bin/hubot -a slack
[Wed Jan 13 2016 16:40:59 GMT+0900 (JST)] INFO Connecting... [Wed Jan 13 2016 16:40:59 GMT+0900 (JST)] ERROR Error: listen EACCES at errnoException (net.js:905:11) at Server._listen2 (net.js:1024:19) at listen (net.js:1065:10) at net.js:1147:9 at dns.js:72:18 at process._tickCallback (node.js:442:13)
[Wed Jan 13 2016 16:41:00 GMT+0900 (JST)] INFO Logged in as hubot of RUBY GROUPE, but not yet connected [Wed Jan 13 2016 16:41:02 GMT+0900 (JST)] INFO Slack client now connected