Skip to content

ineffyble/nationbuilder-tag-watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nationbuilder-tag-watcher

Script that reports on new tags in a NationBuilder nation, via email or slack notification. Can be automated as a cronjob.

Usage

Email reports

export NATION=nation_slug
export API_KEY=valid_api_token
export MODE=email
export [email protected]
export [email protected]
ruby tagwatcher.rb

Slack alerts

You will need a (Slack webhook URL)[https://api.slack.com/services/new/incoming-webhook].

export NATION=nation_slug
export API_KEY=valid_api_token
export MODE=slack
export WEBHOOK_URL=a_slack_webhook_url
export CHANNEL=nationbuilderalerts
export USERNAME=NationBot
ruby tagwatcher.rb

Multiple nations or configurations

If you would like to easily run multiple instances of the tag watcher, you can use a bash script to set the environment variables before each run.

For simplicity, one option is to create .env.nationslug files in your tag watcher folder, and use the bash source command.

About

Script that reports on new tags in a NationBuilder nation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages