42wim/matterbridge

Message buffer delay

Opened this issue · 0 comments

Discord is plagued with bots (and sometimes humans) who join a server for the express purpose of advertising another server, usually offering sexual content and often linking to discord rooms where internet safety is less of a concern than we would like it to be.

Usually, getting rid of these in an automated fashion is extremely easy. They last for less than a few seconds before being zapped from on high. However, in this short period of time, matterbridge has usually already sent this message to IRC or any other linked platforms.

For the sake of other platforms, it would be extremely useful to have a buffer delay added as a feature to matterbridge, during which time a message can be evaluated for any moderation actions. If it is deleted from a host platform, it can then be removed from the buffer - thus never making it to the other connected platforms.

Ideally, such a buffer would be configurable, in both what moderation actions to mirror (for the same of platforms that do not support certain features), and how long to hold messages for. This would help adjust the function for communities of varying discussion intensities and member count.