Skip to content

noahbass/mailchimp-slack-list-updates

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.