https://github.com/githubocto/good-day-azure
Good Day is a Slack bot that helps developers keep track of how their days went.
https://github.com/githubocto/good-day-azure
good-day slack
Last synced: about 1 month ago
JSON representation
Good Day is a Slack bot that helps developers keep track of how their days went.
- Host: GitHub
- URL: https://github.com/githubocto/good-day-azure
- Owner: githubocto
- License: mit
- Created: 2021-04-30T00:45:00.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-27T18:02:13.000Z (about 1 year ago)
- Last Synced: 2025-10-25T10:28:02.779Z (7 months ago)
- Topics: good-day, slack
- Language: TypeScript
- Homepage:
- Size: 521 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Good Day Slack Bot - Azure Functions
Full writeup for this project is here: [https://github.com/githubocto/good-day-bot](https://github.com/githubocto/good-day-bot)
Good Day is a Slack bot that pings users every day and asks how their day was. It depends on these Azure functions for cron job tasks.
## Development
1. `brew tap azure/functions && brew install azure-functions-core-tools@3`
2. Create a `local.settings.json` with the following content:
```jsonc
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "", // get automatically from VSCode Debug panel
"FUNCTIONS_WORKER_RUNTIME": "node",
"GH_API_KEY": "YOUR PAT GOES HERE", // get from good-day-bot account on GitHub
"PG_CONN_STRING": "", // get from 1 password using table goodday
"SLACKBOT_API_URL": "https://octo-devex.ngrok.io" or "https://octo-good-day-bot.azurewebsites.net/",
"AZURE_FUNCTIONS_ID": "", // API Key ID for slack server
"AZURE_FUNCTIONS_SECRET": "" // API Key secret for slack server
}
}
```
3. In VSCode go to the Debug panel and click on `Attach to Node Functions` then select the Azure storage account to use for debugging `octogooddaystorage`.
4. `npm install`
5. `npm run watch` and `npm run start` in another tab
## Building / Releasing
Deployment to the production app happens automatically when pushing to main by using a GitHub Action specified in `.github/workflows/good-day.yaml`.
Or use the [Azure Functions](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions) for dev testing work.
In both cases you also have to set the `env` variables for the Azure app through the app's configuration panel.
## License
[MIT](LICENSE)