@dansup Why not use Draupnir to help moderate spam in Matrix?

Here's the project where you can request a Draupnir bot hosted by a Draupnir community member for free. docs.draupnir.midnightthoughts