Notify the Slack channel of the lunch members selected from the Slack user group (skipping holidays). Also, keep records on Google Sheets so that members do not overlap.
- Deploy this
$ npm i $ npx clasp login $ npx clasp create 'Lunch Wagon' --rootDir ./src $ npx clasp push
- Create google spreadsheet
- Sheet name is
history
- Sheet name is
- Set script properties as ENV(File > Project properties > Script properties)
- SLACK_ACCESS_TOKEN
- SLACK_CHANNEL
- SLACK_USERGROUP_ID
- SHEET_ID
- Add project trigger(Edit > Current project's triggers > Add trigger)
- notifyChoseMembers
- Choose which function to run:
notifyChoseMembers
- Which run at deployment:
head
- Select event source:
Time-driven
- Select type of time based trigger:
Week timer
- Select hour interval:
Every monday
- Select time of day:
10am to 11am
- Choose which function to run:
- notifyFinal
- Choose which function to run:
notifyFinal
- Which run at deployment:
head
- Select event source:
Time-driven
- Select type of time based trigger:
Week timer
- Select hour interval:
Every Tuesday
- Select time of day:
9am to 10am
- Choose which function to run:
- notifyChoseMembers
- Fork (https://github.com/linyows/lunch-wagon/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the
npm ci
command and confirm that it passes - Create a new Pull Request