A Slack bot to log hours for Team 1540
The bot requires three files in ./secrets/
client_secret.json- The google cloud credential jsonslack_secrets.js- A file exporting the constantsapp_token,token, andsigning_secretfor your slack botconsts.js- A file exporting the below constants. These aren't really secrets, but they are unique to every deploymenthours_sheet_idthe ID of the google sheet to use for reading and writing hoursslack_admin_idthe ID of a slack user who will be able to access the settings page and add time reviewers.
The npm run deploy script expects DEPLOY_HOST and DEPLOY_SCRIPT environment variables.
DEPLOY_HOSTshould be the address of your server, as a ssh targetDEPLOY_SCRIPTshould be a command that will cause the server to run the updated code