Clone the repo and run
stack build
On OS X, you may need to install PCRE and specify an extra include directory. For example, using Homebrew:
brew install pcre
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
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
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