v0.2.0
nsfwbot Image Moderation Bot for Matrix v0.2.0
Things have moved quite quickly and now the bot can redact messages and warn a nominated moderation room - each of these actions can be individually enabled, with most turned off by default so you can test the functionality before going live.
Note: It can only take actions it has permissions to do, so if the bot user doesn't have permissions to redact then the bot will have to skip that action.
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.
Note: As per the last release, 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.