cross-posted from: https://programming.dev/post/18411894

Hello Lemmings!

I am thinking of making a community moderation bot for Lemmy. This new bot will have faster response times with the help of Lemmy webhooks, an amazing plugin for Lemmy instances by @[email protected] to add webhook support. With this, there is no need to frequently call the API at a fixed interval to fetch new data. Any new data will be sent via the webhook directly to the bot backend. This allows for actions within seconds, thus making it an effective auto moderation tool.

I have a few features I thought of doing:

  • Welcome messages
  • Auto commenting on new posts
  • Scheduled posts
  • Punish content authors or take action on content via word blacklist/regex
  • Ban members of communities by their usernames/bios via word blacklist or regex
  • Auto community lockdown during spam

What other features do you think are possible? Please let me know. Any questions are also welcome.

Community requested features:

  • Strike system

Strikes are added to a certain member of the community and the member will be temporarily banned within a time period if their strike count reaches a certain threshold

  • Post creation restriction by account age

If an account’s age is lower than X, remove the post.

  • dbx12
    link
    422 days ago

    Lemmy does not support karma, but account age if I’m not mistaken. Maybe add a rule to require a certain account age before accepting a post. The main idea is to prevent astroturfing, spam accounts and socket puppets for ban evasion.

    Not sure how effective this is since violators could setup an own instance which lies about the account age. Still quite the investment for ban evasion IMHO.

    • Skull giver
      link
      fedilink
      422 days ago

      I’ve set my age to 100 years as a gag, I don’t think you can rely on that stuff. Plus, creating an account is free, so spammers can just create a bunch of sockpuppets beforehand.

      I can still see a use for a moderation bot, though; piping everything through a tool like SpamAssasin could filter out those kbin spam waves that happened every now and then almost automatically.

      • dbx12
        link
        121 days ago

        But you went the extra mile and set up your own instance to do this, right?

        Nice bio btw.

        • Skull giver
          link
          fedilink
          121 days ago

          I mean I didn’t set it up for this, but it was fun. The point is you can’t really rely on this info. I imagine plenty of Fediverse software will render 1970-01-01 as the registration date simply because they don’t track that info.

    • AsudoxOP
      link
      2
      edit-2
      21 days ago

      Sounds good as well. Karma would be bad but account age seems somewhat reasonable as an optional protection. Accepted.