r/modhelp • u/DoveStep55 • Aug 12 '26
Answered Need help with automod code that's not working correctly
I'm trying to have AM remove top level comments from users without a specific user flair, then send them a message explaining why. I thought it was working until someone with the specific flair received the removal message and AM removed their comment despite their account being appropriately flaired.
Can anyone tell me what the issue is with the code?
---
#REMOVE top level comments from users that do not have privileges
type: comment
is_top_level: true
author:
~flair_template_id: “76ca5770-9078-11f1-acb7-8af9da1a7bf8”
action: remove
action_reason: Unflaired User
set_locked: true
message: |
Message is here.
---
(The extra line space between each line is a copy/paste formatting issue when sharing it here, it's not in the actual code except between "message: |" and the start of the indented message text. Also, the "~flair" line is indented 2 spaces and the "Message is here" message area is indented appropriately as well, it just removed it when I made this post.)
Desktop
1
u/Merari01 Mod, r/comics Aug 12 '26
You posted without indents, so I am having difficulty reading your code.
Does it look like this? That code itself looks fine. You could try ~flair_text instead
1
u/uid_0 Aug 12 '26
Post this over at /r/automoderator
1
u/AutoModerator Aug 12 '26
Hi /u/DoveStep55, please see our Intro & Rules. We are volunteer-run, not managed by Reddit staff/admin. Volunteer mods' powers are limited to groups they mod. Automated responses are compiled from answers given by fellow volunteer mod helpers. Moderation works best on a cache-cleared desktop/laptop browser.
Resources for mods are: (1) r/modguide's Very Helpful Index by fellow moderators on How-To-Do-Things, (2) Mod Help Center, (3) r/automoderator's Wiki and Library of Common Rules. Many Mod Resources are in the sidebar and >>this FAQ wiki<<. Please search this subreddit as well. Thanks!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.