/bambot

BambooHR Slack bot publishes company holidays, work anniversaries, first days, birthdays, and who is out each weekday.

Primary LanguageTypeScriptMIT LicenseMIT

bambot

BambooHR Slack bot that, each weekday, publishes

  • Who is out
  • Birthdays
  • Work anniversaries, including a welcome message on the first day
  • Company-observed holidays

Slack screenshot of bambot message

Setup

  • Clone the repository and run npm install
  • Ensure your AWS credentials are available
  • If you have access, generate a BambooHR API key within your account. Otherwise, have a BambooHR admin at your company generate one for you.
  • Determine the BambooHR subdomain associated with your company
  • Configure a Slack Incoming Webhook
  • Deploy with BAMBOOHR_KEY=YOUR_KEY BAMBOOHR_SUBDOMAIN=YOUR_SUBDOMAIN SLACK_CELEBRATIONS_WEBHOOK_URL=YOUR_CELEBRATIONS_WEBHOOK_URL SLACK_OFFICE_WEBHOOK_URL=YOUR_OFFICE_WEBHOOK_URL SLACK_HOLIDAYS_WEBHOOK_URL=YOUR_HOLIDAYS_WEBHOOK_URL COUNTRY_FILTER=country1,country2 npm run deploy. It will run Mon-Fri at 7 a.m. UTC, you can adjust this schedule in serverless.yml.

Developing

  • Run tests, npm test
  • Invoke locally, npm run invoke