Home

Awesome

Slack-Bot-On-Rails

What's this?

A slack bot that responds to say, running on Rails with a React front-end that displays messages.

Run Me

In Slack administration create a new Bot Integration under services/new/bot. On the next screen note the Slack API token.

bundle install

SLACK_API_TOKEN="your token here" rails s

Navigate to http://localhost:3000.

Invite the bot to a channel, then ask it to say hi.

Implementation Details

  1. A vanilla Rails app created via rails new slack-bot-on-rails --skip-activerecord -T, in @d092f4ed.
  2. A slack-ruby-bot that responds to say something, in @a93877ae.
  3. A react app that displays messages sent to Slack, in @9632e9f1.

Copyright & License

Copyright Daniel Doubrovkine, MIT License.