This repository has been archived by the owner on Jun 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
016515a
commit 93a4667
Showing
3 changed files
with
32 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
# channel-status-notifier | ||
# Channel Status Notifier | ||
|
||
CSN (Channel Status Notifier) is a small node script, running on AWS Lambda (+ CloudWatch, for cron jobs). It fetches all the members of a specified Slack Channel, analyses their status (based on keyword first, then emoji), and produces an absence report for the day. | ||
|
||
Absence categories include: | ||
|
||
- On holiday | ||
- Out of office (e.g. conference, training, etc.) | ||
- Off sick | ||
- Work from home | ||
- On parental leave | ||
|
||
Note: this report is dependent on members of the channel updating their Slack status regularly; and before the alert is triggered. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,23 @@ service: channel-status-notifier | |
provider: | ||
name: aws | ||
runtime: nodejs12.x | ||
profile: csn | ||
environment: | ||
NODE_ENV: "${file(./serverless.env.yml):NODE_ENV}" | ||
SLACK_TOKEN: "${file(./serverless.env.yml):SLACK_TOKEN}" | ||
|
||
plugins: | ||
- serverless-offline | ||
|
||
stackTags: | ||
teamDL: [email protected] | ||
environment: p | ||
systemCode: channel-status-notifier | ||
tags: | ||
teamDL: [email protected] | ||
environment: p | ||
systemCode: channel-status-notifier | ||
|
||
functions: | ||
post: | ||
handler: post.post | ||
|