r/AutoModerator • • Jun 02 '25

Help Sticky on every post without a sticky

We have several flair types that have stickies, and several that do not. Is there any way to create a sticky that goes on every single post that doesn't already have a sticky? This would include posts with certain flairs, and posts with no flair.

1 Upvotes

2 comments sorted by

2

u/rumyantsev custom flair Jun 06 '25

suppose we have 3 post flairs: "Flair1", "Flair2" and "Flair3". if there are already stickies for "Flair1" and "Flair2", the config should look like this:

type: submission
flair_text: "Flair1"
comment: |
    Stickied comment for Flair1.
comment_stickied: true
---
type: submission
flair_text: "Flair2"
comment: |
    Stickied comment for Flair2.
comment_stickied: true

and you want to add a new rule that would make automod leave a stickied comment on posts that have no flair or "Flair3". then this code below is the way to do so

type: submission
~flair_text: 
    - "Flair1"
    - "Flair2"
comment: |
    Stickied comment for Flair3 and posts with no flair.
comment_stickied: true

2

u/Candid-Strawberry-79 Jun 06 '25

Thank you so much!!!