Some guests forget their story night. Bruna wants a reminder to go out the night before, to everyone signed up for the next day's story nights. Gorm will run it every evening, and he is wary: nobody must get two reminders, even if he runs the command twice by mistake.
The specifications
app:soirees:rappeler (remind the story nights)
- the guests of tomorrow's story nights (according to the tavern clock) get a reminder. Today's story nights, or those the day after tomorrow, are not included;
- the reminder:
- subject:
Tomorrow night: "The Fall of Gondolin"; - in HTML, it recalls the title, the storyteller and the time (
20:30);
- subject:
- nobody gets two reminders: run again, the command does not resend anything that already went out, but a sign-up that arrived in the meantime gets its own. So the database must remember, for each sign-up, the date of its reminder (
Inscription::getRappelEnvoyeLe(), rappel envoyé le = reminder sent on,nulluntil it has gone out); --dry-runsends nothing and marks nothing;- the closing messages:
2 reminders sent.or1 reminder sent.;No reminders to send.when there is nothing to do;2 reminders would be sent.with--dry-run.
In the preview, a story night takes place tomorrow, with two sign-ups. Run the command in the Console tab, twice, then open the 📬 Mailbox.