Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1.05 KB

README.md

File metadata and controls

24 lines (17 loc) · 1.05 KB

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_WEBHOOK_URL=YOUR_URL 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