r/AutoModerator • u/UltraBBA • Apr 17 '26
Automoderator not creating comment as required
I've got this code in my automod:
---
type: submission
flair_template_id: c070c6cc-3a81-11f1-91ce-56a6e994c39e
comment_stickied: true
comment: |
**IMPORTANT:** This is a comments restricted thread. Comments are allowed __ONLY__ from users who have built a reputation in __THIS__ sub and acquired enough reputation in THIS sub. Other users to this sub should avoid commenting in this thread. This is a spam restriction measure the mods apply to certain threads that ask for feedback on named products / services.
---When someone creates a post and I trigger this post flair on that post, automod is not creating the sticky in the thread.
Please, what am I doing wrong?
(Also, and this is not an automod problem, but there may be a problem with the flair itself. When I flag a post with this flair, the flair shows up at the top of the post but then it disappears if I reload the page. I've tried several times and the same thing happens every time. I thought I'd disclose that here as it may be related to the above problem.)
Thank you.
1
u/WhySoManyDownVote Apr 17 '26
I'd bracket and quote the ID.
Edit: you probably want to lock the automod comment so people don't try to reply to it as well.
1
u/PandDos Apr 19 '26
ive been using AI a lot to help with the automod. i put your question in and this was the answer below. im not sure if thats a solution you want. but even if its not, jump on one of the AI and work through the issue with it. ive used paid GPT as well as the free Gemini. both are really good
The issue you’re facing is a common misunderstanding of how AutoMod "triggers."
1. Why the comment isn't appearing
AutoModerator only scans a post at the exact moment it is submitted (or when it is edited). It does not "watch" a post for changes made by a moderator later on.
When you manually change a flair on an existing post, AutoMod has already finished its check for that submission and moved on. It won't see the new flair, so it won't trigger the comment.
How to fix this: To make this work via flair, you have two main options:
2. The Disappearing Flair
The fact that your flair disappears after a refresh suggests a Template ID mismatch or a Permissions issue.
c070c6cc-3a81-11f1-91ce-56a6e994c39eis the exactflair_template_idand not just the CSS class.A Better Solution: The "Command" Trigger
Since you want to trigger this manually, the most reliable way is to use a comment command. This allows you to summon the sticky comment whenever you want by typing a specific word.
Add this to your AutoMod code:
YAML
How to use it:
!restrict.This bypasses the flair issue entirely and gives you instant control.
1
u/DustyAsh69 AutoModerator Lover Apr 17 '26
Might be a bug.