hubot(https://hubot.github.com/)をインストールした時のメモ。
準備
ref: http://qiita.com/sinmetal/items/154e81823f386279b33c
node アンインストール
node が既にインストール済みだったので、アンインストール
$ curl -o uninstall-node.sh https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
$ chmod u+x uninstall-node.sh
$ ./uninstall-node.sh
$ rm uninstall-node.sh
$ sudo rm -rf /usr/local/include/node
$ sudo rm -rf /usr/local/lib/dtrace/
nodebrew インストール
nodebrew をインストール
$ curl -L git.io/nodebrew | perl - setup
...
========================================
Export a path to nodebrew:
export PATH=$HOME/.nodebrew/current/bin:$PATH
========================================
node インストール
$ nodebrew install-binary v4.2.2
$ nodebrew use v4.2.2
hubot インストール
ref: https://hubot.github.com/docs/
$ npm install -g yo generator-hubot
SlackBot 作成
$ cd workspace
$ mkdir myhubot
$ cd myhubot
$ yo hubot
? Owner marty.marron@gmail.com
? Bot name SlackBot
? Description A simple helpful robot for your Company
? Bot adapter (campfire) slackgot back false
? Bot adapter slack