Get mailing list updates from MailChimp in your Slack channel 🚀
Features
- Runs on serverless (AWS Lambda by default, but configurable for other providers in
serverless.yml) - Gets the number of subscribers in a MailChimp list
- Hits a Slack webhook with a message
- Three random emoji included in each message 💎 🌮 🐳
- Runs every other day (customizable in
serverless.yml)
Example Message
Mailing list subscriber count as of today: *80* :dromedary_camel: :open_book: :baby_chick:
Follow these steps to get started. You'll need:
- A MailChimp api key (
MAILCHIMP_API_KEY) - A MailChimp list id (
MAILCHIMP_LIST_ID) - A Slack incoming webhook (
SLACK_WEBHOOK_URL)
Then, to deploy:
$ serverless deployThen set the environment variables (from above) in the Lambda console.
To test immediately (without waiting for the scheduled event), invoke the function from the CLI:
$ serverless invoke --function runRun tests with npm test. Check code coverage with npm run coverage.