Skip to content

Allow per-event preamble text #116

Description

@nmlorg

Through at least 0.3.30, bot admins can customize the text that appears at the beginning of daily announcements (and it even allows a legacy behavior where it will cycle through each line of a multiline message, which I don't think anyone takes advantage of), but I just noticed an instance of a bot sending a daily announcement, then a human almost immediately sending a manual announcement with brief explanatory text for that event. It might make sense to allow bot admins to add text to an upcoming event (separate from the full description stored in Google Calendar) to be merged into/replace the bot's global preamble.

Bot:
There's an event coming up:

Community Performance Event
⁴ ᵈᵃʸˢ Fri 17ᵗʰ, 7–9ᵖᵐ @ Location

Click the date/time for more details or to RSVP.

Human:
Hello! Today is the last day if you wanted to sign up as a performer for Community Performance Event! Link for sign ups is: https://example.com/12345

might become:

Bot:
Hello! Today is the last day if you wanted to sign up as a performer for Community Performance Event! Link for sign ups is: https://example.com/12345

Community Performance Event
⁴ ᵈᵃʸˢ Fri 17ᵗʰ, 7–9ᵖᵐ @ Location

Click the date/time for more details or to RSVP.

but then automatically revert to the generated preamble once Community Performance Event has passed.

This specific example points out one issue:  Do we need to worry about "Today is the last day to"-type messages? Bot admins could just customize the per-event preamble every day/on the second-to-last day (etc.), but does this happen often enough that we should really support date-specific (not just event-specific) preambles?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions