GitHub - ornato-t/lemmy-automoderator: An AutoMod bot for Lemmy.
github.com
external-link
An AutoMod bot for Lemmy. Contribute to ornato-t/lemmy-automoderator development by creating an account on GitHub.

cross-posted from: https://lemmy.basedcount.com/post/225787

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.

ijeff
link
fedilink
51Y

Interesting. Thanks for this! Can it automatically post a reply or send a PM when something is removed explaining why?

Nerd02
creator
link
fedilink
4
edit-2
1Y

Yes! When setting a removal rule for a post or a comment, you can fill an optional message field. After having removed the content, the bot will reply to the user with whatever you have written there.

Relevant pages from the docs:

ijeff
link
fedilink
41Y

Awesome! Thanks for all your work on this :).

What, treat the user like a human being? Are you mad?

ijeff
link
fedilink
51Y

It’s a big problem in how Lemmy handles removals. I currently have to send a PM to each person explaining why and where they can post instead (e.g., asking them to post tech support questions to !askandroid@lemdro.id instead of !android@lemdro.id).

Thankfully Photon makes it easier to do this in one step, but it doesn’t support managing multiple types of responses.

candyman337
link
fedilink
51Y

bellissimo

Great news!

A community dedicated to fediverse news and discussion.

Fediverse is a portmanteau of “federation” and “universe”.

Getting started on Fediverse;

  • 0 users online
  • 6 users / day
  • 1 user / week
  • 70 users / month
  • 614 users / 6 months
  • 1 subscriber
  • 964 Posts
  • 13.2K Comments
  • Modlog