nsfwbot Image Moderation Bot for Matrix v0.2.1
This is a minor release to add extra docstrings and error handling, to generally improve reliability and experience now this plugin has been announced in TWIM!
Future plans involve being able to optionally ban users, and also customising the exact percentage threshold to mark something as safe or not - we've found (very few) examples of safe images that scored just slightly over 50% and triggered the bot, whereas a threshold around 70-80% would have avoided this entirely.
If you would like to make any improvements yourself, please to raise a PR - I'd love to see this project become super reliable and useful for moderation!
Note: As per the previous releases, the nsfwdetection Python module unfortunately does not currently run on Alpine Linux, which is the base image for the official Maubot Docker container. I have built a Debian Bookworm variant of Maubot that is a drop-in replacement with the necessary modules already installed, but is larger and will be updated more slowly than the standard Alpine version. That said, if you do wish to use it, simply drop
ghcr.io/tcpipuk/maubot:debian
into your Docker/Kubernetes configuration.