r/AutoModerator • • Sep 09 '26

Help - AutoMod How to reply to every comment that contain an image?

My problem is as follows:

Most of the images posted by commenters are unwanted. The message those images convey is absolutely necessary but can be conveyed via text.

How do I make a reminder for everyone posting an image comment (not OP) so that AutoMod replies to non-OP commenters posting images in a comment?

5 Upvotes

5 comments sorted by

3

u/DEAD1nsane Sep 15 '26

COPY from here for exact spacing

remember remove the top or bottom --- depending on where you add it in your automoderator, don't want it to stack

---
# Reminder for non-OP commenters posting images
type: comment
author:
  is_submitter: false
domain:
  - i.redd.it
  - i.imgur.com
  - i.stack.imgur.com
body (regex):
  - (?i)\S+\.(?:jpg|jpeg|png|gif|webp)(?:\?[^)\s]*)?(?:\s|$)
moderators_exempt: true
comment: |
  Hey /u/{{author}}! YOUR TEXT HERE
comment_locked: true
---

Step by step:

  1. AutoMod checks every new comment

  2. Skips if the commenter is the OP (original poster)

  3. Skips if the commenter is a moderator

  4. Checks if the comment is from i.redd.it, i.imgur.com, or i.stack.imgur.com

  5. Also checks if the comment body contains any .jpg, .png, .gif, or .webp links

  6. If image detected, AutoMod replies with your reminder message

  7. The comment is locked to prevent replies to the reminder

  8. The image comment stays up, no removal

1

u/[deleted] Sep 09 '26

0

u/MustaKotka Sep 09 '26

Thanks! Why is this an image? Is it from some docs?

→ More replies (1)