Skip to content

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

Notifications You must be signed in to change notification settings

austra/spoilerbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published