Skip to content

๐Ÿš Notify the Slack channel of the lunch members selected from the Slack user group

License

Notifications You must be signed in to change notification settings

linyows/lunch-wagon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

79 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation


Lunch Wagon for GAS

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.

Usage

  1. Deploy this
    $ npm i
    $ npx clasp login
    $ npx clasp create 'Lunch Wagon' --rootDir ./src
    $ npx clasp push
  2. Create google spreadsheet
    • Sheet name is history
  3. Set script properties as ENV(File > Project properties > Script properties)
    • SLACK_ACCESS_TOKEN
    • SLACK_CHANNEL
    • SLACK_USERGROUP_ID
    • SHEET_ID
  4. 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)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Run test suite with the npm ci command and confirm that it passes
  6. Create a new Pull Request

Author

linyows

About

๐Ÿš Notify the Slack channel of the lunch members selected from the Slack user group

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published