aisutd / birthday-bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AIS Birthday Bot

Birthday bot that reads names & dates from a google sheet & posts birthday messages to a slack channel.

Local Development

Download service account credentials from Google Cloud Console.
  • Open Membership-Portal project in Google Cloud
  • Navigate to IAM & Admin > Service Accounts
  • Open birthday-bot service account
  • Open Keys tab, select Add Key & click Create New Key
  • Create a JSON key and download it
Set environment variables
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/birthday-bot-credentials.json
export BIRTHDAY_SPREADSHEET_ID=https://docs.google.com/spreadsheets/d/BIRTHDAY_SPREADSHEET_ID
export SLACK_CHANNEL_ID=birthday-bot-channel-id
Build and run
npm run build
npm start

Questions

Reach out to Harsha Srikara for any questions.

About


Languages

Language:TypeScript 100.0%