For context on the spam problem, hundreds of Mastodon servers are chucking out thousands of spam messages.
One example instance: https://opensimsocial.com/public/local
It’s all one dude on Discord who has realised they can script spam. Thankfully they haven’t published source code.