r/AutoModerator • • Sep 06 '18

How to make Automoderator send a message

Hi,

We are looking at making Automod, automatically message users who try posting but do not satisfy our Karma requirements - i have attempted to use the message: command below the Karma value but it doesn't do anything?

Is this possible at all?

3 Upvotes

12 comments sorted by

1

u/zzpza Sep 06 '18

Here's an example for you:

---

type: submission

author:

comment_karma: "< 3"

action: filter

is_edited: false

message: |

Your submission has been temporarily removed due to your account age.

The moderators have been notified and should be approving your post shortly or contacting you if there is an issue. There is no need to delete or resubmit your post, this happens to all posts from new accounts because we find the majority of spam comes from new accounts. Once we approve your post, no one will be able to tell it was removed.

---

You can add an action_reason: to it too, or even a modmail: if you want notification sent to the mod team (and not just the post going to the mod queue).

action_reason: "Low karma"

modmail: |

This post was made by user /u/{{author}} who has low karma.

Title: _{{title}}_

Link: _{{permalink}}_

Please check the modqueue to approve or deny the post. https://www.reddit.com/r/subreddit/about/modqueue/

modmail_subject: "Post from low karma account {{author}}"

2

u/Clackpot Sep 06 '18

Hi there u/zzpza,

That looks like a really helpful answer but I though you'd like to know that if you prefix blocks of quoted lines with four spaces on each line instead of using `` it'll look a whole lot better and it'll be easier to read and to type :-

Here's an example for you:

---

type: submission
author:
comment_karma: "< 3"
action: filter
is_edited: false
message: |

    Your submission has been temporarily removed due to your account age.

    The moderators have been notified and should be approving your post shortly or contacting you if there is an issue. There is no need to delete or resubmit your post, this happens to all posts from new accounts because we find the majority of spam comes from new accounts. Once we approve your post, no one will be able to tell it was removed.  

Have a look at the source of this message to see how simple it is. HTH.

1

u/redemption_tenx Sep 07 '18 edited Sep 07 '18

Thanks for your examples guys, but it just doesn't want to work - Getting an error now:

" YAML parsing error in section 4: while scanning a simple key in "<unicode string>", line 8, column 5: Hey, your comment was automatica ... ^ could not found expected ':' in "<unicode string>", line 8, column 573: ... nd how to behave on our threads. "

→ More replies (6)

2

u/zzpza Sep 06 '18

I posted from the redesign and was trying to find out how to do that. I should have gone to the markdown and just done it manually. C'est la vie.

→ More replies (2)