Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/linyows/lunch-wagon
🚐 Notify the Slack channel of the lunch members selected from the Slack user group
https://github.com/linyows/lunch-wagon
bot calendar gas lunch slack spreadsheet
Last synced: 17 days ago
JSON representation
🚐 Notify the Slack channel of the lunch members selected from the Slack user group
- Host: GitHub
- URL: https://github.com/linyows/lunch-wagon
- Owner: linyows
- License: mit
- Created: 2018-04-30T05:24:24.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-21T07:08:31.000Z (over 4 years ago)
- Last Synced: 2024-12-01T13:47:37.746Z (22 days ago)
- Topics: bot, calendar, gas, lunch, slack, spreadsheet
- Language: TypeScript
- Homepage:
- Size: 3.99 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Lunch Wagon for GASNotify 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.
Usage
-----1. Deploy this
```sh
$ npm i
$ npx clasp login
$ npx clasp create 'Lunch Wagon' --rootDir ./src
$ npx clasp push
```
1. Create google spreadsheet
- Sheet name is `history`
1. Set script properties as ENV(File > Project properties > Script properties)
- SLACK_ACCESS_TOKEN
- SLACK_CHANNEL
- SLACK_USERGROUP_ID
- SHEET_ID
1. 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`
- 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`Contribution
------------1. Fork (https://github.com/linyows/lunch-wagon/fork)
1. Create a feature branch
1. Commit your changes
1. Rebase your local changes against the master branch
1. Run test suite with the `npm ci` command and confirm that it passes
1. Create a new Pull RequestAuthor
------[linyows](https://github.com/linyows)