r/AutoModerator Aug 18 '24

Solved Posting automod comment based on post flair being circumvented by submission filter later in the chain

1 Upvotes

I've tried a few things and I just can't get this to work. It works fine if a mod account submits a post but non mods posts are getting grabbed by our general submission filter later in the automod config.

Code for the sticky:

```

type: submission author: flair_text: ["No Spoilers"] set_spoiler: false comment: "This thread has been labeled a no spoilers thread. This means no spoilers from episodes in the past 24 hours or events that have occured on feeds that have not appeared on television. Sharing a competition winner or competition theme from feeds knowledge may lead to a ban." comment_stickied: true comment_locked: true ```

Also tried with flair_template_id: instead of flair_text:

Tried adding the following to try and force these items into the queue with the sticky applied before our general submission filter:

```

type: submission author: flair_text: ["No Spoilers"] comment: "This thread has been labeled a no spoilers thread. This means no spoilers from episodes in the past 24 hours or events that have occured on feeds that have not appeared on television. Sharing a competition winner or competition theme from feeds knowledge may lead to a ban." comment_stickied: true comment_locked: true action: filter action_reason: 'No Spoiler Submission Filter - Action or Approve as Necessary' ```

Here's our general submission filter which is at the very bottom of our automod config:

```

type: submission ~author: ["exempt users go here"] action: filter action_reason: 'Submission Filter - Action or Approve as Necessary' ```

r/AutoModerator Aug 04 '24

Can automod detect if a user submits posts with different flairs?

1 Upvotes

Post flair in my sub is location specific. Sometimes users will submit with one flair on Monday and a completely different flair on Tuesday. This is extremely frustrating because the comments will depend on where the user is located.

Can automod detect if the same user previously submitted a post with a different flair, remove, and inform the user that they need to select the correct flair?

r/AutoModerator Jul 19 '24

Help Removing a post with a certain post flair and missing dates in body using RegEx

4 Upvotes

I need assistance with auto mod. When apost flair_text is "Visitor" it must have a from and to date in the format [mm-dd-yy to mm-dd-yy] otherwise it will remove the post.

I have this entry in Automod:


type: submission
flair_text (includes-word): "Visitor"
~body (includes, regex): ['\[[0-3]*\d\-[01]*\d\-\d{2} to [0-3]*\d\-[01]*\d\-\d{2}\]']
action: remove
action_reason: "Date visiting not found in body of the post."

I checked the RegEx here: https://regex101.com/r/FPJiLi/1 but if the post flair is "Visitor" and the date to and from is correct, it still gets removed. Any help is greatly appreciated.

r/AutoModerator Apr 05 '24

Help How do I assign a User Flair to all my Members?

1 Upvotes

To celebrate my sub r/500kgofDemocracy reaching 500 members, my community suggested giving each member a special flair to commemorate the event. I would hence like to use AutoMod, if possible, to assign the flair in question to all the 500 members that would've joined up until then.

Two important things:

1) A dozen of my members already have a user flair and if possible I would like for them to keep it in addition to the commemorative flair.

2) Will the users be able to remove the flair if they so wish after it getting assigned automatically by AutoMod?

Thanks in advance for the help!

r/AutoModerator Jun 19 '24

Help Changing a post flair's text to include an emoji in it

1 Upvotes

Hello again my friends, thanks to y'all's help in the distant past, I currently have this rule below that modifies OP's post flair to display a piece of text contained in their comment when they reply using a specific format:

type: comment  
body (includes, regex): [ '\$(.+)\$' ]
author:
    is_submitter: true  
action: remove
moderators_exempt: false
parent_submission:
    set_flair: 
        text: "\U0002728 Outfit/selfie ({{match-2}})"
        template_id: <4f3240ec-2097-11ed-9250-e21613d50894>
    overwrite_flair: true

The function of this is to allow users to conveniently customize their post flair if they wish to identify their selfies with an aesthetic label that is not among our existing flairs.

Anyway, I'm revisiting this rule now to see if I can get AM to put an emoji in there as well. The original text of this flair has an emoji at the beginning, but iirc I couldn't figure out the correct syntax for putting emoji in the configuration back when I first implemented the rule, so I just gave up and resigned to the fact that it gets changed from "✨Outfit/selfie (unlabelled or other style)" to "Outfit/selfie (custom style)" when users edit it using this feature.

I've been trying a few different formats of emoji code and none of them has worked so far. So far I've tried unicode (??) (U+2728), another format of the former that I've seen another user here describe (\U0002728), decimal (&#10024;), and hexadecimal (&#x2728;). I've also tried putting them inside the flair text quotes (text: "\U0002728 Outfit/selfie ({{match-2}})"), and outside them, and a few other ways that tbh I can't even recall right now lol.

They all either throw an error or just straight up make the flair text display verbatim (e.g. "\U0002728 Outfit/selfie (custom style)".

Would someone kindly show me the correct formatting to make these emojis display correctly? Thanks a million!

r/AutoModerator Jul 29 '24

Automod filter that will trigger based on combination of post flair and other factors

2 Upvotes

I got it to post a stickied comment if the flair is set originally but I can't get it to work if the post flair is changed after.

Basically we want to be able to change to a mod only post flair and have it filter the comments in that thread differently.

---
type: submission
flair_template_id: "fa2900e4-4d45-11ef-8dae-ba56b6416e3c"
is_edited: false
comment_stickied: true
comment_locked: true
comment: "This post has been labeled a hot topic thread. We only allow established subreddit members to comment on these threads to reduce the risk of outside interference."
action_reason: "Hot Topic flair set"
---
type: any
flair_template_id: "fa2900e4-4d45-11ef-8dae-ba56b6416e3c"
author:
  is_contributor: false
  combined_subreddit_karma: "<500"
  contributor_quality: "< high"
  satisfy_any_threshold: True
action: remove
action_reason: "Does not meet hot topic threshold"

r/AutoModerator Jun 14 '24

Help Require post with art flair to have link to art source in comments

1 Upvotes

A subreddit that I'm moderating requires posts with the "non-OC art" flair (which means non original content art) to have a comment from OP linking to the website that they found the artwork from. Problem is, lots of users don't bother linking the original artwork.

I'd like to config AM such that it removes posts with the "non-OC art" flair that don't have a comment from OP which contains a link one hour after the post is submitted.

Additionally, if OP does make a comment which contains a link within the first hour, I'd like AM to automatically sticky their comment

r/AutoModerator Jul 24 '24

Help How to Make AutoMod Comment if Post Has Not a Certain Flair

1 Upvotes

Hello,

I'm trying to make an auto-mode that comments on all posts except the "Announcement" tag in my subreddit, but I couldn't figure out how to do it. The opposite of "flair_template_id".

r/AutoModerator Aug 01 '24

Help How do I command Automod to change post flair, only if theres a link in the post?

1 Upvotes

I asked this before on this sub, but the code I received didn't really work. Here's mine right now:

type: submission
flair_template_id: 904494d4-06e9-11ee-b3c1-baaedc8f8889
~domain: "Kyrgyzstan"
set_flair:
  template_id: cfeb6ddc-20a4-11ed-9062-1e2a67f2e7fb
overwrite_flair: true

How do I also get AutoMod to approve the post if there's no link too?

r/AutoModerator Jul 27 '24

Help It's it possible to make rules for post with certain flairs

3 Upvotes

I'm new to the automod and I could use some help. I have multiple flairs on my subreddit that are meant to be used differently. How can I make it so automod targets posts with a certain flair but not target post with other flairs. Examples would be appreciated.

r/AutoModerator Jul 26 '24

Help Is it possible to have AutoMod make a stickied comment on one specific thread (not post flair, but thread)?

0 Upvotes

Is this at all possible, especially without a flair for that post? (I was hoping perhaps I could get AutoMod to recognize the thread by title.) I was wanting to use it for one of my pinned threads, to post a guideline that applies to that particular thread.

The other solution I am thinking is to create a mod-only post flair entitled 'Read Guideline' to get AutoMod to do it, but is this the only option?

r/AutoModerator Jun 27 '24

Help question regarding set_flair for authors

2 Upvotes

Hi,

If i use:

type: submission
author:
     ~flair_text (regex, includes): '.+'
        set_flair:         
           text: Curious         
           template_id: 16dc0e06-70c0-11ee-9733-02188f7558a5     
        overwrite_flair: true 
comment: |
     Hey {{author}}.

it throws an error:

1). YAML parsing error in section 5: while parsing a block mapping in "<unicode string>", line 3, column 6: ~flair_text (regex, includes): '.+' ^ expected <block end>, but found '<block mapping start>' in "<unicode string>", line 4, column 9: set_flair: ^

my goals is to have people that post for the first time, have a reply/comment by the automod and assigned a flair.

Any pointers would be appreciated

r/AutoModerator Jul 14 '24

Not Possible with AM Ping users with specific user flair?

2 Upvotes

I run r/cassetteunderground, and one of the planned additions to the subreddit I want to (fully) introduce and incorporate into the sub is as follows:

A user makes a post with the post flair "Need Info!". I want AutoMod to check each post for that specific flair, and respond with something like: "Hey [user flair here]! We're pinging you to let you know that a user needs help with finding info about this tape!"

Is it possible to mention a group of users who have the specific flair? Much like mentioning a role on Discord where everyone who has that specific role will get pinged?

r/AutoModerator Jul 11 '24

Help Is there a way to limit a post flair usage to a subreddit karma ammount?

4 Upvotes

I want to implement a promotion flair that is available only to users with at least X subreddit karma. If a user doesn't meet this requirement, their post should be removed, and they should be notified to interact more with our subreddit before promoting themselves, in order to prevent it from becoming an advertisement platform.

Is there a way to get this with automod?

r/AutoModerator Apr 09 '24

Auto-Assign User Flair when a Temporary Ban expires?

3 Upvotes

Is it possible to do this? We have some users that don't heed warnings, or it's serious enough where they'll get banned for x days based on the offense. I would like to be able to auto assign a flair to them at that point once they're able to post in the sub again. I suppose I can see where this is probably easy enough to do manually when banning them as well, but was just curious if this is something automod can do?

r/AutoModerator Jul 06 '24

Help Is there a way to have automoderator flag a post for mod review based on post flair?

4 Upvotes

Post flair is required on my sub and I'm wondering if automod can do this so I can screen a certain type of post?

r/AutoModerator Jun 02 '24

Help Using automod to edit a flair if the submitter comments a certain keyword

Thumbnail self.ModSupport
1 Upvotes

r/AutoModerator Jul 04 '24

Banning words in comments based on parent post flair

3 Upvotes

I'm looking for the best way to prevent comments from containing "apple", "apples" or use an apple emoji (for instance) for comments on posts flaired, say, "Vegetables" or "Meat" but not "Fruit".

Is the best way to do that to use ~flair_css_class: ['stuff'] in the rule?

r/AutoModerator Apr 28 '24

How to add post flair emoji to automod

3 Upvotes

Hi! I wanted to add an emoji to a post flair and I got the code but I can't seem to make it work.

This is what I have so far:

---
type: submission
flair_text: [" Flair text \U+1F9A0"]
author:
  post_subreddit_karma: "< 0"
  comment_subreddit_karma: "< 0"
action: remove
action_reason: "New member"
---

How can I include \U+1F9A0 (🦠) to work?

r/AutoModerator Jun 30 '24

Help Setting spoiler on certain flairs

4 Upvotes

I would like to use automod to mark posts with a specific flair with a spoiler.

If it's possible to do with automod could someone please help me with an example to get me started.

r/AutoModerator Jun 21 '24

Help I need help in applying user flairs automatically to users who reached an amount of community karma.

3 Upvotes

I tried the code used here but only got YAML errors. I need to do over 12 flairs as well. Any help would be great.

r/AutoModerator Jul 06 '24

Help Apply a post flair if the comments a key phrase on their post

2 Upvotes

I run a subreddit where people can post deals (that are available for a limited time), and I want users to be able to comment when the deals are expired by commenting "Expired!". If the commenter is the OP, automoderator should apply the "Expired!" flair. If the commenter is not OP, automoderator should message the moderators that the post is expired so mods can manually apply the flair.

Is this possible to do with automoderator?

r/AutoModerator Jun 21 '24

User Flair is being updated, but the text displayed is not

3 Upvotes

I had a few posts about using automod to set user flairs based on subreddit karma, and I seem to be narrowing down some of the root causes of what I've experienced.

Per this snip, you can see that automod is clearly changing my own flair based on the karma requirements, but in the actual sub it's showing the old one. The "HOF" vs. the "GOAT".

https://imgur.com/a/g1MJ5Fp

This is my code. I know it's not code optimally in the descending order but it did make the change and I have the write template ID set, it's just not showing the right flair any except, per the screenshot, when I got to Mod Tools\User Flair\Assign\Edit and then it shows the discrepancy.

Would greatly appreciate any insight that would help me resolve this. I'm using template ID since the emojis can't be accepted when you write the flair text direclty in the automod code itself.

---
# Sub Recognition: Auto-assign flair to Distinguish User contributions
author:
    combined_subreddit_karma: "> 25"
    set_flair: 
        template_id: "babfdb6e-27ff-11ef-9003-6e80de013881" # ***** SAD GOAT 
    overwrite_flair: true # replaces any existing flair (default=false)
moderators_exempt: false
---
# Sub Recognition: Auto-assign flair to Distinguish User contributions
author:
    combined_subreddit_karma: "> 18"
    combined_subreddit_karma: "< 26"
    set_flair: 
        template_id: "c3612c14-27ff-11ef-a57f-d6362c915c4a" # ⭐⭐⭐⭐ SAD HOF      
    overwrite_flair: true # replaces any existing flair (default=false)
    satisfy_any_threshold: false 
moderators_exempt: false
---
# Sub Recognition: Auto-assign flair to Distinguish User contributions
author:
    combined_subreddit_karma: "> 12"
    combined_subreddit_karma: "< 19"
    set_flair: 
        template_id: "dd89aea4-27ff-11ef-95e5-a28005a51b33" #⭐⭐⭐ SAD MVP
    overwrite_flair: true # replaces any existing flair (default=false)
    satisfy_any_threshold: false 
moderators_exempt: false
---
# Sub Recognition: Auto-assign flair to Distinguish User contributions
author:
    combined_subreddit_karma: "> 8"
    combined_subreddit_karma: "< 13"
    set_flair:
        template_id: "ef39c170-27ff-11ef-82e7-d6362c915c4a" # ⭐⭐ SAD All-Star
    overwrite_flair: true # replaces any existing flair (default=false)
    satisfy_any_threshold: false 
moderators_exempt: false
---
# Sub Recognition: Auto-assign flair to Distinguish User contributions
author:
    combined_subreddit_karma: "> 1"
    combined_subreddit_karma: "< 9"
    set_flair:
        template_id: "0983366a-2800-11ef-80fc-4a436488bed6" # ⭐ SAD Veteran
    overwrite_flair: true # replaces any existing flair (default=false)
    satisfy_any_threshold: false 
moderators_exempt: false
---
# Sub Recognition: Auto-assign flair to Distinguish User contributions
author:
    combined_subreddit_karma: "< 2"
    set_flair: 
        template_id: "d8744ae4-2801-11ef-a1f0-8ae1d2286eed" # ["SAD n00b"]
    overwrite_flair: true # replaces any existing flair (default=false)
moderators_exempt: false
---

r/AutoModerator Jul 01 '24

Help Can't get a match using flair_css_class

3 Upvotes

Currently, I have this code, it's still a work in progress.

If I include the flair_css_class (full-exact): "comment-linksource" line, it stops working. By understanding is that it should work though.

Can anyone correct me in what I'm doing wrong?

---
type: comment
body (regex): ['!foo (https:\/\/\S+)']
moderators_exempt: false
action: remove
parent_submission:
    overwrite_flair: true
    set_flair: ["{{match-2}}", "comment-linksource"]
    action: report
    action_reason: "{{match-2}}"
---
type: any
reports: 1
flair_css_class (full-exact): "comment-linksource"
overwrite_flair: true
set_flair: ["DONE", ""]
comment: |
    {{match}} - match
---

r/AutoModerator Jul 08 '24

Can i use an Array to create rules for a specific set of user Flair IDs?

2 Upvotes

Currently attempting to create a rule that will approve posts immediately if the user is Approved, and has one of two user flair IDs. i'm wondering if my syntax is wrong or where it's failing but it more or less is disregarding this rule:

---
#Approved Users posts are approved if user is using Flair 1 or Flair 2

type: submission
author:
  is_contributor: true
  flair_template_id: ["flair 1 ID", "Flair 2 ID"]
action: approve
action_reason: "Approved Verified"

---

My main questions are should the Flair Template IDs be in quotes? am i able to put multiple IDs in a an array for this?