the-draupnir-project / Draupnir

A Matrix moderation bot
https://the-draupnir-project.github.io/draupnir-documentation/
82 stars 14 forks source link

RFE: Add MessageIsBinary protection #445

Open spaetz opened 4 months ago

spaetz commented 4 months ago

We have a MessageIsVoiceProtection and a MessageIsMediaProtection, which is great. However, I moderator a room in which I would like to prohibit the posting of binaries (think malware). Previously, I had written a custom bot that redacted all messages that contained attachements whose type was not whitelisted. It would be awesome if draupnir allowed that!

Two possible solutions:

Thanks for considering, and a ton of thanks for maintaining draupnir, it is super useful!