With the help of a moderator I coded a script that automatically performs the following actions:
Clearing chat takes one-click.
In this example script is already running in the background when a bot arrives and begins spamming. Few moments later the scripts detects it, bans the users and deletes all messages.
At the moment it is being used by the mod that gave me the idea and it works like a charm especially against users spamming hundreds of messages to crash albums.
You must be a moderator logged in as such. If you are not a moderator it serves no use.
It is just a jQuery script that "reads" the chat looking for blacklisted words. If match is found it automatically clicks the 3 dots ("Actions" menu) then on "Ban user" option and confirms.
It happens so fast that you don't even see the ban panel on screen.
I still need to perfect the blacklist part.
The thing is I don't want to maintain such list. I'll probably keep it on Github so that mods can add/remove words autonomously but first I need to find a couple of mods that can be trusted.
I'll give updates from this page and on unsee.link .