Skip to content
This repository has been archived by the owner on Apr 10, 2018. It is now read-only.
/ beach Public archive

Small Sinatra app to host web hooks for slack.com

License

Notifications You must be signed in to change notification settings

willrax/beach

Repository files navigation

Beach

Expect things to change as I work on this. This app contains a gem that is powered by Giphy. It's your responsibility to get a production API if you want to use this fully. Otherwise switch out the gem and change the gif service.

dance

Small Sinatra app to host webhook services for slack.com

Easiest to host on heroku.

You'll need to set two environment variables once you've deployed in order for the services to work.

heroku config:set BASE_URL=beach.slack.com
heroku config:set TOKEN=dsahjd7321dal92

The token represents the incoming webhooks integration token that you'll get when you set it up.

Adding your own services.

Add your endpoint to app.rb and create your service under /services make sure to inherit from BaseService.

You can use SlackParams and SlackBot to help. SlackParams is just a simple wrapper around the params that come with each message to the server from slack.com and can be used in your service.

About

Small Sinatra app to host web hooks for slack.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages