LoginSignup
2
0

More than 5 years have passed since last update.

IBM BluemixでHubotをガンガンに動かす

Last updated at Posted at 2016-05-28

bluemixでhubotを動かす方法

Herokuでbotを運用する時代は終わった。これからはIBM Bluemixを使って無料で運用する
http://qiita.com/akameco/items/39a55635ceb0ba185b7f

bluemixに修正をアップロード

$ cf push uran
$ cf restage
$ cf logs [app] --recent # ログの確認

Bluemixだと本体自身に手を加えるより機能を追加する方が良い?

  1. yoでhubotを作成
  2. node_modulesに置くモジュールを別のリポジトリで作成
  3. node_modulesからリンクを作成
  4. モジュールは公開リポジトリで更新
  5. package.jsonにモジュールを記載
  6. cf pushを使ってデプロイ

Hubot スクリプトを追加インストールしよう & 自分だけの Hubot スクリプトをつくろう
http://qiita.com/bouzuya/items/4c0206d72ff22ade9339

手元で対話モードで動かす

$ ./bin/hubot -a shell -n uran 

[uran]はbotの名前

shell アダプターで動かす
http://qiita.com/bouzuya/items/11c0c6da2b3ad54b827f#shell-%E3%82%A2%E3%83%80%E3%83%97%E3%82%BF%E3%83%BC%E3%81%A7%E5%8B%95%E3%81%8B%E3%81%99

手元で接続して動かす

# export HUBOT_SLACK_TOKEN=[Slackの画面に書いてあった値]
# export HUBOT_SLACK_TEAM=[Slackの画面に書いてあった値]
# export HUBOT_SLACK_BOTNAME=[任意のボット名(例:hogebot)]
# export PORT=80
# bin/hubot -a slack

Hubot を Amazon EC2 にセットアップし、Slack と連携する!
http://qiita.com/hkusu/items/3e3695450f8a4f9389b3

cronで定期実行

Hubot × node-cron で、定刻/定間隔に ○○ をさせる簡単な例
http://qiita.com/hkusu/items/fce98bb52a14e47c06d9

定期botを作った話

Hubot+HerokuでSlack用のリマインダーbotを作る
http://qiita.com/ryotahirano/items/be5df095c9859007524a

hubotの良質記事たくさん

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0