Skip to content

Get mailing list updates from MailChimp in your Slack channel 🚀

License

Notifications You must be signed in to change notification settings

noahbass/mailchimp-slack-list-updates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.