A Slack bot written in Haskell
Look at how its done in app/BotAction.hs
.
TODO: Explain this a bit better.
- Create new a Slack Application. The redirect URI should be
{app url}/slack/auth/callback
. - Configure an outgoing Slack webhook to POST to
{app url}
. - Configure an incoming Slack webhook. Update
slackUrl
inapp/BotResponder
to have the correct webhook URL. - Copy
.env.sample
to.env
and fill in yourTONSS_SLACK_CLIENT_ID
andTONSS_SLACK_CLIENT_SECRET
. This is required for testing oauth flow locally.
- Install Stack
stack setup
stack build
stack exec -- yesod devel
You can test commands by going to http://localhost:3000/local
stack build
git push heroku master