austra / spoilerbot

Slack Integration that will display a random card from the latest Magic: The Gathering set.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SpoilerBot

Sinatra app that provides Slack with a simple bot for displaying a random card from the latest Magic: The Gathering set. After configuring an Outgoing WebHook, typing spoiler will display a random card image from Gatherer.

Preparation

SpoilerBot uses a Slack Outgoing WebHook integration for catching the spoiler request and passing it on to the application. You'll need to add a new Outgoing WebHook first so you'll have the SLACK_TOKEN available for deployment.

Deployment

Local

$ bundle install
$ export SLACK_TOKEN=...
$ foreman start

Heroku

$ heroku create
$ heroku config:set SLACK_TOKEN=...
$ git push heroku master

WebHook Settings

Once SpoilerBot is deployed, go back to your Outgoing Webhook page and configure the Integration Settings to your needs. G

  • Channel: Any
  • Trigger Word: spoiler
  • URL: http://your-heroku-appname.herokuapp.com/spoiler
  • Label: spoilerbot

About

Slack Integration that will display a random card from the latest Magic: The Gathering set.


Languages

Language:Ruby 99.9%Language:HTML 0.1%