dblock / slack-bot-on-rails

A Rails + React application with a slack bot.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A Rails + React application with a slack bot.

License:MIT License


Languages

Language:Ruby 77.5%Language:HTML 12.6%Language:CoffeeScript 6.3%Language:JavaScript 1.8%Language:CSS 1.7%