What it is
Ward is a Go library for checking text against moderation and content-safety rules.
I’m building it for Lys, as an additional safeguard to help prevent the bot from sending messages that could violate a platform’s rules.
Why I made it
When you’re running a bot that interacts with people, you can’t always control what those people are going to say or try to make it do.
I wanted to make sure Lys was responsible with its language, regardless of what someone else might send to it.
You never know when someone might deliberately try to get a bot to say something it shouldn’t, and I don’t want Lys getting banned because someone managed to trick it into sending an inappropriate message.
So I started building Ward.
The idea is to give every outgoing message one final check before it gets sent.
How it works
Ward is a text scanner built around moderation rules.
It checks text for potentially unsafe language, including attempts to disguise words or phrases to get around basic filters.
The goal is to integrate it into Lys’s outgoing-message process, so messages can be checked before the bot sends them to a platform.
By keeping the scanner as a separate Go library, I can work on its rules and detection independently of the rest of Lys.
Where it’s at
Ward is still in the workshop.
The scanning library is being developed, with the eventual goal of integrating it into Lys as a safeguard for outgoing messages.
There’s also a lot of testing to consider. People can get creative when trying to get around text filters, so I want to make sure Ward handles more than just the obvious cases before relying on it.
More to look at
all projects-
I push code to GitHub, and my server takes it from there.
-
My own little vault for the passwords, keys, and secrets my projects need.
-
One consistent way for my Go projects to communicate with Cove.