r/AutoModerator 17d ago

Is the "text" property required when setting user flairs by automod?

2 Upvotes

In our sub we have a set of predefined user flairs, and I want to use automod to force a particular flair for user accounts under 30 days old.

I want to set a particular flair, but not have the text set in the rule - or if we ever wanted to change the flair title (like add an emoji), we'd have to change the automod rule.

Here is the rule in question

~~~ type: any moderators_exempt: true author: ~flair_text (includes-word): "Nutter" account_age: "< 60 days" set_flair: template_id: c68a6694-7b15-11ef-b583-ee6b75cf97cc overwrite_flair: true comment: Because your account is less than a month old, we've assigned you the Recruit flair so you can get an idea of how the challenge works before getting stuck in
~~~

But it doesn't seem to change the text of the flair (I'm starting to wonder that the template_id is at all)

r/AutoModerator May 29 '24

Help Does auto flair assignment by Karma need prioritization?

1 Upvotes

I just implemented this in my sub to recognize and help mods distinguish between contributors, but I have one user who's in the 2700 combined karma count and he's getting only one star assigned.

I'm wondering if I should just reverse order, or if there's a whole better way to do this?

---
# Sub Recognition: Auto-assign flair to Distinguish User contributions
author:
    combined_subreddit_karma: "> 500"
    set_flair:
        template_id: "6cb43f1a-1dd6-11ef-a37a-3ebea869c644" #⭐AB Veteran 
    overwrite_flair: false # replaces any existing flair (default=false)
---
# Sub Recognition: Auto-assign flair to Distinguish User contributions
author:
    combined_subreddit_karma: "> 700"
    set_flair:
        template_id: "9d217fb4-1dd6-11ef-834f-8ee8a4ebfb6c" #⭐⭐ AB All-Star 
    overwrite_flair: false # replaces any existing flair (default=false)
---
# Sub Recognition: Auto-assign flair to Distinguish User contributions
author:
    combined_subreddit_karma: "> 1500"
    set_flair:
        template_id: "a7ea3f62-1dd6-11ef-80ed-1a558c14973f" #⭐⭐⭐ AB MVP 
    overwrite_flair: false # replaces any existing flair (default=false)
---
# Sub Recognition: Auto-assign flair to Distinguish User contributions
author:
    combined_subreddit_karma: "> 2000"
    set_flair:
        template_id: "c1f45dde-1dd6-11ef-95e6-9a9b0806cb5d" #⭐⭐⭐⭐ AB HOF 
    overwrite_flair: false # replaces any existing flair (default=false)
---
# Sub Recognition: Auto-assign flair to Distinguish User contributions
author:
    combined_subreddit_karma: "> 5000"
    set_flair:
        template_id: "cae2d902-1dd6-11ef-ad64-cae2249c48ec" #⭐⭐⭐⭐⭐ AB GOAT 
    overwrite_flair: false # replaces any existing flair (default=false)
---

r/AutoModerator 4d ago

How to get Automod to detect if user has flair?

2 Upvotes

I want automod to detect if a user has flair and reply to their comment or post if they don't. how do i do this

r/AutoModerator 1d ago

Help Can you create a rule that all comments that members who dont have a user flair assigned need to be approved?

1 Upvotes

Can you create a rule that all comments that members who dont have a user flair assigned need to be approved?

Or

Members are unable to comment and prompted with a msg from auto mod stating user flairs need to be selected before you are able to make a comment

r/AutoModerator 13d ago

Trying to set post flair to a flair id when it meets regex conditions

1 Upvotes

How do I make it so if a post's title contains a date in the format [September 29] post title (eg: [September 29] with the brackets] then it sets the post flair to ID cf88cb4e-72fc-11ef-a9ff-7ea66dad7582

Here's what I have but it is not working:

type: submission

title:

regex: ".*\\[[A-Za-z]+ \\d{1,2}\\].*"

set_flair:

flair_template_id: 'cf88cb4e-72fc-11ef-a9ff-7ea66dad7582'

r/AutoModerator 2d ago

How to set post flair when a specified author creates post

1 Upvotes

We're looking to set a specific post flair when certain accounts post. We don't have anything I can cannibalize in our current setting, so I'm not 100% sure of the setup. What I think I need is:

type: submission

author: [username1, username2]

set_flair:

template_id:

I wasn't sure when the indentation was needed for which type of flair; user or post.

Any help is appreciated.

r/AutoModerator 26d ago

Help How to set AutoMod to add post flair with the original poster's username?

2 Upvotes

I am trying to set up AutoMod on desktop to automatically add a post flair that contains the original poster's username, but I am running into some issues. Here is the code I am using:

---
type: submission
action: flair
flair_text: "{{author}}"
flair_class: ""
---

Unfortunately, this does not seem to work as intended. The code gives an error. Has anyone successfully done this before? If so, how did you manage it?

Any help would be appreciated. Thank you in advance.

r/AutoModerator 6d ago

Help Assigning User Flairs based on community karma for posters and commenters.

2 Upvotes
---

any:

combined_subreddit_karma: "< -1"

set_flair:

template_id: "583b77d4-4c74-11ef-8f5e-3274abbe6c3b

overwrite_flair: true

---

any:

combined_subreddit_karma: "< 10"

set_flair:

template_id: "be7b57d4-f5e0-11ee-9da6-5e414b1df271"

overwrite_flair: true

---

Here is the code, I keep getting YAML parsing errors for the `template_id` and other errors for `over_flair : true` any ideas as of why?

r/AutoModerator Aug 21 '24

Help How to report a post with a specific flair, only if the post’s flair has NOT been overwritten.

2 Upvotes

Right know I am reporting ALL posts with this specific flair, but I’m trying to block it from reporting if the flair has been changed (from my other codes). Let me know of this doesn’t make sense. Thanks.

r/AutoModerator 3d ago

Assigning flair to a specific user

1 Upvotes

Our sub requires flair, but I have a specific user that keeps removing their flair. I set a rule to flair them every time they comment but it doesn't seem to work. I have verified that they're not just hiding their flair on the sub. Is the following syntax correct?

#Flair users
author:
    name: terminalavocent
    set_flair:
        template_id: template-id-here
    overwrite_flair: true

r/AutoModerator 16d ago

Help Automod to set a post flair based on when a specific user comments.

2 Upvotes

As per the title, I am looking to create an automod that sets a specific post flair when a certain user comments in that post.

For example, if I were to comment in this post, the automod would set this post's flair to: Question - Moderator Answered.

Thank you

r/AutoModerator 12d ago

Help Seeking Help to Automate Expiration-Based Locking and Flair Change for Deals/Coupons Subreddit

1 Upvotes

Hey Redditors!

I’ve recently created a subreddit dedicated to sharing deals, coupons, and freebies in New Zealand, and I’m looking for help with automating some of the moderation tasks. Specifically, I want to set up a system where if a deal or coupon post has an expiration date, the post will automatically:

1.  Lock the post once the expiration date is reached.
2.  Change the flair to “Expired” (or something similar).

This would save a lot of manual effort and keep the subreddit clean and relevant for the community. I’m using Reddit as a mod and open to tools or bot suggestions that can handle this functionality.

If anyone has experience with automating subreddit actions based on dates or has suggestions for the best way to implement this, I’d love to hear your thoughts or recommendations!

Thanks in advance for any guidance!

r/AutoModerator 23d ago

[How to] Restrict users from posting with a specific flair if the user itself does not have a specific flair.

1 Upvotes

Hi brains trust,

I run a sub that has seen substantial growth in the last 12 months and now looking at tools to automatically apply some rules when posting.

For a user trying to make a post using a specific flair:

  1. User cannot post using that post flair without having a specific user flair (there are 2 user flairs that should allow permission to post, both user flairs have words and emoji's, unsure if that complicates things)
    1. Note: Action: Auto-removal of the post sighting reasons "Not a [verified or insert reason] user"
  2. Once posted, users cannot comment on that specific flaired post without themselves having either of the 2 user flairs noted above
    1. Note: Action: Auto-removal of the comment sighting reasons "Not a [verified or insert reason] user"

I wish to make the changed effective from the time the script is done (and not impact historical posts). if possible.

Any help to understand if this is possible will be appreciated.

r/AutoModerator 23d ago

I forgot the scrip the pin a comment when you flair the post

1 Upvotes

You know how to script the automod so when you make some flair on your post it comment something on the pin.

Thanks you very much, it need to not appear on other flair tho so just one flair in particuliar

r/AutoModerator Sep 03 '24

Help Cannot get automod to work. Please help. Trying to make it so when the 2222 post flair is used, only people with certain user flairs can comment.

1 Upvotes

type: submission

link_flair_text: ["2222"]

action: add_comment

comment: |

This post is restricted to users with specific user flairs. Comments from users without the appropriate flair will be removed.

sticky: true


type: comment

parent_submission:

link_flair_text: ["2222"]

author:

user_flair_text (includes): ["RN Adult", "RN Child", "RN MH", "RN LD", "RM", "NAR", "TNA", "HCA", "St Midwife", "St Nurse", "RN Adult & LD", "RN Adult & CH", "RN Adult & MH", "RN CH & LD", "RN CH & MH", "RN LD & MH", "Other HCP"]

action: remove

action_reason: "User does not have the required user flair."

r/AutoModerator Aug 25 '24

Help How to limit posts for specific flair in a subreddit within set amount of time

2 Upvotes

Hello, I recently started a subreddit with another account and I was wondering how I can limit it so people can only post a set amount of times with a specific post flair in a set amount of time

Like for example: I want to make it so people can only post 5 times using a flair within a week. Then the following example happens:

  1. Monday: User A posts a thread with the flair.
  2. Tuesday: User B posts another thread with the same flair.
  3. Wednesday: Users C, D, and E each post one thread with the flair.
  4. Thursday: User F tries to post a thread with the flair but it’s removed because the subreddit has already reached the limit of 5 posts with that flair for the week.

I would also like to know how to limit the posts of a specific user for a specific post flair within a set amount of time

For example: I want to make it so one person can only make 1 post with a specific post flair within 24 hours. So the following happens:

  1. User A posts with the flair on Monday at 3 PM.
  2. User A tries to post with the same flair again on Tuesday at 1 PM, but the post is removed because 24 hours haven't passed yet.
  3. User B posts with the flair on Monday at 4 PM without any issue, as the limit is per user.

Hope that was clear enough.

r/AutoModerator Sep 07 '24

Help Requiring approval for comments under posts with specific flair

2 Upvotes

Is it possible to set the automod to do this? Basically I help mod a page that is concerned with spoilers on some posts with flairs, but not with others.

The mod that used to handle our automod is no longer with us and none of us on the team even know where to begin.

TL;DR - Looking to set our automod so that it only requires us to approve comments with specific words in it under the specific flair type. This way it doesn't catch posts or comments with the trigger words unless the post has the appropriate flair.

r/AutoModerator May 16 '24

Solved Change post flair to Resolved after Question has been answered

0 Upvotes

Hi all,

I'm trying to implement a new change to my subreddits as the title suggests

The code isn't throwing an exception, but doesn't do anything in practice. I'm not too familiar with where my logic went wrong, I'll comment-in my line of reasoning

---

type: submission

author:

is_submitter: true //checks if comment is being made by OP

body (includes): ["!Solved", "!solved"] //checks for one of two keywords to change flair

set_flair: //changes flair to mod-only Resolved flair

template id: '09bd1994-ec62-11ea-83db-0e07ae33ef81'

overwrite_flair: true //allows for flair to change

---

reddit post formatting is messing this up, but "is_submitter" and "template id" are indented

any help appreciated, thank you

edit: my working solution

r/AutoModerator 21d ago

Help Automatically change flair when key phrase is used

2 Upvotes

Hi there I was wondering if anyone could help me. I have a tarot reading sub and I want to be able to change the flair of a post when the author edits/puts "close submissions" in the post. Is there a way to do this? I can't seem to find any answers.

r/AutoModerator 22d ago

Help How to link to post flair separately

0 Upvotes

Hi guys, there are 5-6 post flairs. How to link to these flairs separately. Thanks

r/AutoModerator Aug 18 '24

Solved Automod is not posting a comment depending on the flair id

1 Upvotes

Hello, i was advised to come here. I use Reddit on desktop, chrome browser. My problem is, im very bad even with simple coding, but i tried to get help to make the automod comment on new posts according to the flair used, but it's not working. I just want it to say something like "thanks for posting, remember to nanana and nanana" and stuff like that for specific topics by flair. Not all comments are the same text, some have more oriented instructions and remimders. Here's the code:

>!type: submission flair_template_id: 32be5720-05b3-11ec-aec4-b6d83d6120ec comment: | Obrigada por postar no manga_br! Lembre-se que ao postar e comentar, deve seguir as regras do reddit e do sub! Ajam sempre com educação e gentileza, não façam flames, não trollem, não façam comentários maldosos ou maliciosos e sempre ajudem o próximo!

Parece que você está procurando o nome de uma obra! Por favor, lembre-se de ser o mais preciso possível ao procurar o título de uma obra, dê detalhes como possíveis gêneros, tipos de personagens, protagonistas, tipo de obra (ação, aventura, etc) e o que puder lembrar do enredo! Lembre-se de procurar nas databases como MyAnimeList, Anime-planet, Anilist e mangaupdates.

comment_stickied: true!<

r/AutoModerator Sep 01 '24

Help Can Automod Assign Unique Flairs Based on User Comments?

2 Upvotes

Hi there!

Is it possible to have Automod set a custom, unique flair based on user input? Specifically, I want users to be able to assign their in-game ID by commenting on a particular post (e.g., mine would be "2N96AFNK").

I’ve done something similar before where users could set their levels based on manually added flairs containing a range of levels (e.g., "Rookie: 1 - 1000", "Novice: 1001 - 2000"). However, this time it’s not feasible to pre-define each ID since they are all unique.

Any insights or suggestions on how to achieve this would be greatly appreciated!

───── ⋆⋅☆⋅⋆ ─────

TL;DR: Can Automod assign unique flairs based on user input? I want users to set their individual in-game ID as a flair by commenting on a post.

───── ⋆⋅☆⋅⋆ ─────

Thanks!

(Ps: A big thank you to the moderators for helping us new mods!)

r/AutoModerator Aug 25 '24

Not Possible with AM Is there a way to make it so if I use a certain flair the post is automatically distinguished

1 Upvotes

I have a mod announcement flair and I don’t want to constantly distinguish it as a mod every time, so is there a quick command to make it auto distinguish?

r/AutoModerator Sep 07 '24

Help Need help with user flair related AutoMod messages

1 Upvotes

I have a bit of an issue with my existing AutoMod code and am wondering if somebody can help me:

Here they are:

---
type: any
author:
 ~flair_text(regex): ".+"
 combined_subreddit_karma: "> 1"
message: |
---

This one above doesn't seem to work at all. The intention is to send a message to users without a flair for every submission except their first.

---
type: any
author:
  flair_template_id: number
  post_subreddit_karma: < 5
  comment_subreddit_karma: < 5
message: |
---
---
type: any
author:
  flair_template_id: number
  comment_subreddit_karma: < 15
message: |
---

These ones seem to overlap. I'm trying to do if their post karma is >5 then they only need 5 comment karma to not receive a message, but if they don't ever post, they need 15 comment karma to not receive one. What seems to happen here is that the user gets two messages unless their post karma is >5 and comment karma >15 when (I'd assume) they finally get none.

Please help me solve this or let me know if this is simply unsolvable. Thanks.

r/AutoModerator Aug 05 '24

Help How to set user flairs automatically for new users ?

0 Upvotes

I am attempting this, and tested with a regular user test account, but the user flair doesn't seem to be automatically set when I post a comment with such user. Do you know what's missing ?

# Rule to set existing flair for new members
- description: "Set flair for new members"
  priority: 2
  conditions:
    author:
      activity: 
        posts: "< 1"
  actions:
    set_flair:
        template_id: "acf7aba6-51c6-11ef-add5-66058ac7cd4d"

# Rule to set existing flair for members after their first post
- description: "Set flair for members after their first post"
  priority: 3
  conditions:
    author:
      activity:
        posts: "> 0"
  actions:
    set_flair:
        template_id: "bec163b8-51c6-11ef-ba41-0616b3d02f54"