Get mailing list updates from MailChimp in your Slack channel 🚀
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.env.example
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json
serverless.yml
test.js

README.md

mailchimp-slack-list-updates

serverless Build Status Code Coverage MIT license GitHub tag

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:

Deploy

Follow these steps to get started. You'll need:

Then, to deploy:

$ serverless deploy

Then 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 run

Test

Run tests with npm test. Check code coverage with npm run coverage.