/slack-lambdabot

Lambdabot for Slack

Primary LanguageHaskellBSD 2-Clause "Simplified" LicenseBSD-2-Clause

slack-lambdabot

Lambdabot for Slack

Building

Clone the repo and run

stack build

OS X

On OS X, you may need to install PCRE and specify an extra include directory. For example, using Homebrew:

brew install pcre

Running

slack-lambdabot requires the SLACK_API_TOKEN environment variable to be set to a Slack API token. Follow Slack's Bot Users guide to create one.

Then, you should be able to run

SLACK_API_TOKEN=foo ./dist/bin/slack-lambdabot

Deploying to Heroku

slack-lambdabot is easily deployed to Heroku using Haskell on Heroku. Follow the instructions there, but in general you should be able to run the following once

heroku create -b https://github.com/mietek/haskell-on-heroku

Then, follow the instructions in

  1. Set up private storage
  2. Deploy the buildpack
  3. Build on a one-off PX dyno

Next, ensure your SLACK_API_TOKEN is set with

heroku config:set SLACK_API_TOKEN=foo

Now, subsequent deploys should be as simple as

git push heroku master