hubotを入れてみた

hubotを入れてみました

https://hubot.github.com/docs/
を見ながら

$ sudo npm install -g yo generator-hubot


$ yo hubot Make sure you are in the directory you want to scaffold into. This generator can also be run with: yo hubot _____________________________ / // | Extracting input for | //// _____ | self-replication process | ////// /_____ / ======= |[^_/_]| /---------------------------- | | _|___@@__|__ +===+/ /// _ | |_ /// HUBOT/ |___/// / / +---+ ____/ | | | //| +===+ // |xx| ? Owner: sample@sample.co.jp ? Bot name: hubot ? Description: A simple helpful robot for your Company ? Bot adapter: (campfire) slack ? Bot adapter: slack create bin/hubot create bin/hubot.cmd create Procfile create README.md create external-scripts.json create hubot-scripts.json create .gitignore create package.json create scripts/example.coffee create .editorconfig _____________________________ _____ / | Self-replication process | | | _____ | complete... | |__| /_____ Good luck with that. / |//+ |[^_/_]| /---------------------------- | | _|___@@__|__ +===+/ /// _ | |_ /// HUBOT/ |___/// / / +---+ ____/ | | | //| +===+ // |xx|

adapterはslackを選びました

いちおうgitで管理しておきます
.gitignoreは用意してくれているので

$ git init
$ git add .
$ git commit -m ‘initial commit’

hubotを起こします

$ bin/hubot
hubot> [Wed Apr 29 2015 23:57:48 GMT+0900 (JST)] ERROR hubot-heroku-alive included, but missing HUBOT_HEROKU_KEEPALIVE_URL. heroku config:set HUBOT_HEROKU_KEEPALIVE_URL=$(heroku apps:info -s | grep web_url | cut -d= -f2)
[Wed Apr 29 2015 23:57:49 GMT+0900 (JST)] INFO Using default redis on localhost:6379

hubot>

で立ち上がりました
話しかけます

hubot> hubot ping
PONG

PONGと返事がきました

ひとまずここまで

npmのコマンドをおさらい

npmでパッケージ一覧を見る

$ npm list -g

インストールする

$ npm install -g (パッケージ名)
$ npm i -g (パッケージ名)

アンインストールする

$ npm uninstall -g (パッケージ名)
$ npm remove -g (パッケージ名)
$ npm r -g (パッケージ名)

とりあえずこれだけでしのげています

ubuntuにnode.jsとnpmをインストールする

sudo apt-get install -y nodejs
を見ながら

$ curl -sL https://deb.nodesource.com/setup | sudo bash –

$ sudo apt-get install -y nodejs

確認
$ node -v
v0.11.13

$ npm -v
1.4.9

なんか古いですね..
とりあえず急場はこれでしのぎました

awsのダッシュボードを英語に切り替える

ひさしぶりにawsのダッシュボードにアクセスしたら、ダッシュボードが英語に..
慣れないので英語に..と思ったら迷ったのでメモ

aws

普通に左下にありました..

設定メニューがあると思って探しました