Summarize Slack chat history into an email digest.
Install Python 3 and then run:
venv ./myenv
./myenv/bin/python setup.py develop
- If you receive SSL errors on OSX, try installing Python 3 from Homebrew.
Create and deploy the app:
heroku create my-app-name
git push heroku master
Add the following add-ons:
- Postmark (note: doesn't support message threading)
- Heroku Scheduler
- Papertrail (optional)
Set the following config vars:
SLACKEMAILDIGEST_FROM=sender@yourdomain.com
SLACKEMAILDIGEST_TO=receiver@theirdomain.com
SLACKEMAILDIGEST_TOKEN=slack-test-api-token
(Test token)
Set the following variable:
SLACKEMAILDIGEST_DELIVERY=postmark
Note that messages sent via postmark won't be threaded properly.
Set the following variables:
SLACKEMAILDIGEST_SMTP_HOST=smtp.example.com
SLACKEMAILDIGEST_SMTP_PORT=587
SLACKEMAILDIGEST_SMTP_USER=example
SLACKEMAILDIGEST_SMTP_PASSWORD=secret
Configure the necessary add-ons:
- Open the Heroku Scheduler add-on from your app dashboard and add a new job running
scripts/slack-email-digest.sh
daily. - (postmark only) Open the Postmark add-on and create a "sender signature" matching the value of
SLACKEMAILDIGEST_FROM