https://github.com/flamingchickens1540/slack-time-bot
https://github.com/flamingchickens1540/slack-time-bot
slack
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/flamingchickens1540/slack-time-bot
- Owner: flamingchickens1540
- License: mit
- Created: 2022-08-24T02:46:48.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-02T21:38:18.000Z (over 2 years ago)
- Last Synced: 2025-03-27T09:21:31.594Z (about 1 year ago)
- Topics: slack
- Language: TypeScript
- Size: 374 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Slack Time Bot
A Slack bot to log hours for Team 1540
## Setup
The bot requires three files in `./secrets/`
- `client_secret.json` - The google cloud credential json
- `slack_secrets.js` - A file exporting the constants `app_token`, `token`, and `signing_secret` for your slack bot
- `consts.js` - A file exporting the below constants. These aren't really secrets, but they are unique to every deployment
- `hours_sheet_id` the ID of the google sheet to use for reading and writing hours
- `slack_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 target
- `DEPLOY_SCRIPT` should be a command that will cause the server to run the updated code