This is a tiny utility to post public holiday information to Slack each day.
Public holiday information is pulled from the Abstract API Public Holidays API. There's a generous free quota that you probably won't exceed for a good while.
You can configure which countries are posted. Great for international teams!
-
Download or build a binary (TODO: set up GitHub actions to publish automatically.)
-
Provide two environment variables:
ABSTRACT_API_KEY
: API key for your Abstract API account.SLACK_WEBHOOK_URL
: URL of a Slack "Incoming Webhook" integration.
-
Run the bot periodically. Cron is likely the easiest way, but you're free to choose your own adventure here.
Usage: public-holiday-slackbot [OPTIONS] <COUNTRIES>
Arguments:
<COUNTRIES> comma-separated list of countries to fetch in 2-letter format (ISO 3166-1 alpha-2, e.g. "US,UK,AU")
Options:
--date <DATE> date to fetch in ISO8601 format (defaults to current day)
-h, --help Print help