slack & gifs
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
.gitignore
.ruby-gemset
.ruby-version
Gemfile
Gemfile.lock
README.markdown
config.ru
renumerate-gifs.rb
slackr_gif_bot.rb
tags.rb

README.markdown

A sinatra application that listens for an incoming webhook from you public slack channels & posts gifs back to them.

Create an ingoing and outgoing webhook in your slack account. You will also need to know the name of your slack sub domain & where you have placed your gifs.

The directory structure should be

´´´ ASSET_BASE_URL/TAG_NAME/NUMBER.gif ´´´

This will create a url that looks like

http://box.tv4.se/slackr-gif-bot/hey-everybody-look-at-me/0.gif

To start it from the command line run it like this:

´´´ SLACK_IN_TOKEN=YOUR_INCOMING_WEBHOOK_TOKEN SLACK_OUT_TOKEN=YOUR_OUTGOING_WEBHOOK_TOKEN SLACK_HOST=YOUR_SLACK_HOST ASSET_BASE_URL=YOUR_ASSET_BASE_URL rackup ´´´