Utility for Slack integrations.
Taut is useless without hooks. Take a look at taut-gifme for an example.
Put this in your Gemfile:
gem "taut", github: "philtr/taut"Create a config.ru:
require "bundler"
Bundler.require
run Taut::ApplicationThis is not supported, but you should be able to mount Taut in your routes:
# config/routes.rb
Your::Application.routes.draw do
mount Taut::Application, at: "/taut"
endSet the following environment variables:
SLACK_TOKEN=198uihchu0ah801308
SLACK_DOMAIN=philtr
SLACK_USERNAME=TautBot
SLACK_EMOJI=:ghost:
Any environment variable is available inside your hooks:
config.slack_domain # => "philtr"
config.slack_token # => "198uihchu0ah801308"