Skip to content
This repository has been archived by the owner on Aug 17, 2019. It is now read-only.

Remind about team meetings #1

Open
alexgleason opened this issue Jun 7, 2017 · 3 comments
Open

Remind about team meetings #1

alexgleason opened this issue Jun 7, 2017 · 3 comments

Comments

@alexgleason
Copy link

Team meetings occur once per month, the day before the first Sunday of the month.

Not sure how to write this as a cron string, lol. Hopefully it's possible. If not we can write a cron string that schedules a trigger on each Saturday and then check that date against a calendar to determine if that day is the day a meeting occurs.

@mleanos
Copy link

mleanos commented Aug 17, 2017

Something like this should work..

// reminder set in server.js
nerd.remind({ rule: "0 0 13 1-7 * 6" },
  "Hey all! Don't forget—we have our monthly meeting at 7pm PST."
)

https://github.com/node-schedule/node-schedule#cron-style-scheduling

@mleanos
Copy link

mleanos commented Aug 17, 2017

Team meetings occur once per month, the day before the first Sunday of the month.

Yea, so this is a bit more complicated, and my example wouldn't work. For some reason I was just thinking the "first Saturday of the month".

I suppose your idea of just scheduling a job to run each Saturday, and then check if the next Sunday is within the first 7 days of the month.

@alexgleason
Copy link
Author

I'm not working on this project anymore so feel free to take a crack at it.

I think the work party URLs also have to be changed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants