Allow scripts to receive notices (title + text)
Bugs Larnia
## Use Case:
As people gain groups, people get a lot of group notices - especially with the increase in the group cap. This can lead to notice overload.
By allowing a script to receive the notice (title + text, not attachments), a group can create a central point for "their" notices where people can review notices easily. Notices can also be saved beyond the expiration date in Group Notices, allowing for better archiving.
In addition, groups with external gathering spots like Discord, can then create a webhook and display the notices in a dedicated channel, further increasing visibility.
## Implementation:
- Add a new event: on_group_notice(string title, string message)
- The script will receive notices for the group that its container is set to (see security model for details)
- When a notice is received, the event triggers and delivers the payload.
- Attachments are ignored (unless you can find a way to integrate that too).
## Security Model:
- Scripts can onlyreceive scripts for the group their containing prim is set to.
- Scripts can onlyreceive notices for that group if the script owner has the "Receive Notices and view past Notices" permission in that group.
- Securing notices from those who do not have that permission is the responsibility of the script creator.
Log In