this post was submitted on 07 Sep 2023
112 points (97.5% liked)

Fediverse

27935 readers
656 users here now

A community to talk about the Fediverse and all it's related services using ActivityPub (Mastodon, Lemmy, KBin, etc).

If you wanted to get help with moderating your own community then head over to !moderators@lemmy.world!

Rules

Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration), Search Lemmy

founded 1 year ago
MODERATORS
 

I have built an AutoMod bot for my instance, lemmy.basedcount.com. The bot covers the following features:

  • Automated removal
    • of posts, based on their title, content or link
    • of comments, based on their content
    • configurable with either regular expressions or substrings
  • User whitelisting and exceptions for moderators to selectively lift some or all of the aforementioned rules for certain users.
  • Mention based pinning and locking of a post, through commands exclusively available to the mod team
  • Discord notifications for new registration applications through a webhook. [only for admins]

Naturally, the bot is completely open source. I have also written a rather comprehensive (albeit long-winded) documentation and some examples.

This project is mainly targeted towards admins of small instances, however anyone can spin up their own AutoMod instance for their favourite community (provided they are a moderator there).
The automoderator is also available as a Docker image, for ease of installation.

Feel free to suggest any additional features that you might want to see added to this bot.

you are viewing a single comment's thread
view the rest of the comments
[–] Nerd02@lemmy.basedcount.com 3 points 1 year ago

I got the same question from another user under my lemmy.ml crosspost, I guess this is a hot feature. Yes there is a way to do that.

When setting a removal rule for a post or a comment, mods can fill an optional message field. After having removed the content (according to the rule), the bot will reply to the user with whatever has been written in said field.

So say your comment got removed because you said a banned word, the AutoMod would reply to your removed comment with a message saying: "Your post has been removed because [...]", depending on what the mods have configured. To clear any doubt, they can also specify a removal reason for the modlog.