ruboty をherokuで動かしてみた

Bot用の適当なアカウントをSlackで作成する

あとはこのまま Ruby + Bot = Ruboty - ✘╹◡╹✘

適当なディレクトリ掘る

$ mkdir bot
$ cd bot

bundle init

$ bundle init

Gemfileを以下のように編集

source "https://rubygems.org"

gem "ruboty"
ruboty-slack"

Procfileを作成して中身を以下のように編集

bot: bundle exec ruboty

git プロジェクト作成してコミット

$ git init
$ git add .
$ git commit -m "Initial commit"

Herokuコマンドで remote にHerokuを追加

$ heroku create

HerokuにPush

$ git push heroku master

設定

$ heroku scale bot=1
$ heroku config:set ROBOT_NAME=tqbot SLACK_TEAM=tqhouse SLACK_USERNAME=tqbot SLACK_ROOM=general SLACK_PASSWORD=XXX

ping pong!