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_secret
for your slack botconsts.js
- A file exporting the below constants. These aren't really secrets, but they are unique to every deploymenthours_sheet_id
the ID of the google sheet to use for reading and writing hoursslack_admin_id
the 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_HOST
should be the address of your server, as a ssh targetDEPLOY_SCRIPT
should be a command that will cause the server to run the updated code