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と返事がきました
ひとまずここまで
清水俊博,大津繁樹,Jxck,小林秀和,佐々木庸平,篠崎祐輔,高木敦也,西山雄也 アスキー・メディアワークス 2012-10-26