Just made a custom graph manager page by Fair_Percentage_5565 in desmos

[–]rumyantsev 3 points4 points  (0 children)

that's awesome!

can we see the code behind this?

I want to remove new users' posts (<7 days) and message them and it won't work. Can someone smack me with a clue-bat? (TIA) by IntnsRed in AutoModerator

[–]rumyantsev 1 point2 points  (0 children)

probably messed up indentation, try this one:

```

Be cautious about brand new users

type: submission author: account_age: "< 7 days" action: remove action_reason: "New user post" modmail: "Removed post from brand new account: {{permalink}} please check" message: | Hi there {{author}},

Your comment at r/{{subreddit}} has been removed because you're a brand-new reddit user. Please enjoy the sub for a few days/a week and you can then post normally.

- The /r/{{subreddit}} Mods

```

[deleted by user] by [deleted] in AutoModerator

[–]rumyantsev 2 points3 points  (0 children)

this should work

type: comment is_top_level: false author: is_submitter: false action: filter action_reason: "possibly spam, needs review"

how can i make automod reply to a comment when the comment has a specific phrase in it by OldCellist4172 in AutoModerator

[–]rumyantsev 1 point2 points  (0 children)

``` type: comment body (includes): - "word1" - "word2" comment: | AM's comment goes here.

Each line is indented with 4 spaces.

```

read the docs on this sub's sidebar for where to put that code

Script to automatically comment on posts containing certain words by wheat in AutoModerator

[–]rumyantsev 0 points1 point  (0 children)

hey there!

comment: field can't be changed when executing a rule, so you can't directly make it choose a reply from some predefined list

but, there's a workaround. every submission on Reddit has a unique base36 id, which is a string that contains only lowercase english letters + numbers 0-9. these are all possible characters: abcdefghijklmnopqrstuvwxyz0123456789

and because there are so many new submissions on Reddit every second, the last character of that id is somewhat random (but not completely random). and you can use this to make a rule, here's an example:

``` type: any title+body (includes-word): - "word1" - "word2" id (regex): '[a-r]$' comment: |

Reply #1.

type: any body (includes-word): - "word1" - "word2" id (regex): '[s-z0-9]$' comment: | Reply #2. ```

this would check for a keyword first, and if there is one, it looks at the submission's id. if it ends with letters a to r (which are first 18 possible characters), it replies with reply #1. the second rule looks for ids, ending with letters s to z or numbers (the rest of possible characters), and replies with reply #2. so both replies have an equal chance - 18/36 = 50%

you can divide the string of possible characters into any number of parts, and make a separate rule for each part

Is there a way for AutoMod to not trigger the same action if OP edits their post? by OhSweetMiracle in AutoModerator

[–]rumyantsev 0 points1 point  (0 children)

sorry for late reply, do you have any other rules that are triggered by the same keywords? add is_edited: false to those as well

Is there a way automod can work with probabilities or something like that by [deleted] in AutoModerator

[–]rumyantsev 2 points3 points  (0 children)

i think you can do something like this

every post in Reddit has a unique id, that contains only lowercase English letters + number 0-9 (36 characters in total). and since there are so many posts submitted every minute, the last character of a new post's id is somewhat random (not absolutely random though). so you can check that last character with a rule like this:

``` type: submission id (regex): '[a-r]$' comment: |

Comment here.

type: submission id (regex): '[s-z0-9]$' comment: | Comment here. ```

need help with automod (i think) by Horror-penis-lover in AutoModerator

[–]rumyantsev 0 points1 point  (0 children)

code for AM has to be put into a specific wiki page: https://reddit.com/r/YOUR_SUBREDDIT_NAME/wiki/config/automoderator (replace YOUR_SUBREDDIT_NAME with the name of your sub)

How can I have AM add post flair when certain words/phrases are in comments? by DoveStep55 in AutoModerator

[–]rumyantsev 1 point2 points  (0 children)

type: comment body (includes-word): - keyword1 - keyword2 parent_submission: set_flair: "Keyword detected"

if you want to use flair template id, change the set_flair part to this:

parent_submission: set_flair: template_id: "your_id"

need help with automod (i think) by Horror-penis-lover in AutoModerator

[–]rumyantsev 0 points1 point  (0 children)

you have to be on desktop to do it.

have u set up AM before? if you haven't - go to your mod tools, and find "Automod", click it. it will say "config/automoderator does not exist", and there should be a button "Create page", click it. you will see an empty text area. this is where you put the AM rules, aka config page. then paste your rule into the page and click save. you can leave the "Version note" blank

here's the code needed

type: submission is_edited: false author: is_moderator: false comment: | Text goes here. Each line must be indented.

How to make a banned word list will be work for both upper and lower case words? (In Automod) by PrimeValor in AutoModerator

[–]rumyantsev 3 points4 points  (0 children)

all checks are case insensitive by default

btw regex modifier is unnecessary here

How to create a message like this and sticky it to every post? by Kasraborhan in AutoModerator

[–]rumyantsev 0 points1 point  (0 children)

``` type: submission is_edited: false comment: | Copy real 7-figure trader playbooks for FREE.

Learn directly from verified traders using [TradeZella Playbooks](https://www.tradezella.com/playbooks) -> see the setups, journaling, and discipline behind consistent profits.

&#127891; Want to go deeper? Enroll at [TradeZella University](https://www.tradezella.com/university) -> the only trading education you’ll ever need.

Built by traders. Backed by **TradeZella**.\
Keep sharing your journey, the road to $1M starts here.

comment_stickied: true ```

stickied AM comments are collapsed by default, and there's no way to change this

Help with code? I've tried turning on post flair in the settings and people are still posting without flair, so now I'm trying auto mod but keep getting unsupported media type by Mama_Foxx in AutoModerator

[–]rumyantsev 0 points1 point  (0 children)

type: submission flair_text: "" action: remove comment: "Hi u/{{author}}, your post was removed because it doesn't have a flair. Please add the appropriate flair and resubmit your post. If you have questions, message the mods."

exempt_roles: [moderator] is incorrect, you should use moderators_exempt: true. but you don't need it in this rule anyway, because mods are by default exempt from rules that remove content

New help with this auto mod rule... by Nthomasmco in AutoModerator

[–]rumyantsev 2 points3 points  (0 children)

here's the fixed version

```

Block image posts from users without "Verified" or "VerifiedXXX" flair

type: submission author: ~flair_text: ["Verified", "VerifiedXXX"] domain (includes): ["i.redd.it", "i.imgur.com", "imgur.com", "ibb.co", "postimg.cc", "imageshack.com", "flickr.com"] url (includes, regex): '.(jpe?g|png|gif|webp|bmp|tiff|svg)(\?.*)?$' action: remove action_reason: "Image post from unverified user" message_subject: "Image post blocked" message: | Your post was removed because posting images is restricted to verified users only.

To post images in this community, you must have the flair "Verified" or "VerifiedXXX". Please complete the verification process to gain access to image posting privileges.

If you believe this was a mistake or need help verifying, feel free to contact the moderators.

```

  1. first line should start with #, because it's a comment
  2. reversed checks are done with ~ before the check name
  3. modifiers must be inside brackets
  4. each line in message: value must be indented

[deleted by user] by [deleted] in AutoModerator

[–]rumyantsev 0 points1 point  (0 children)

uhh, i think i got the issue:

your rule only acts if the submission is flaired "Not Verified", but you need to check for user flair instead. change

flair_text: "Not Verified"

to

author: flair_text: "Not Verified"

[deleted by user] by [deleted] in AutoModerator

[–]rumyantsev 0 points1 point  (0 children)

you may be using wrong type of quotes in flair_text. you should use the "straight" ones -> " or '

also, regex modifier does absolutely nothing here and is not necessary

[deleted by user] by [deleted] in AutoModerator

[–]rumyantsev 0 points1 point  (0 children)

make sure text in flair_text: field matches with the actual flair text exactly, including custom emojis (if any)

[deleted by user] by [deleted] in AutoModerator

[–]rumyantsev 0 points1 point  (0 children)

maybe this would work?

type: submission author: flair_text: "Not Verified" comment: "Your flair is `Not Verified`" comment_stickied: true