Help with AutoMod two user checks.

Help

I am trying to make a rule that only allows people with more than 10 comment karma to comment unless they are the original submitter. Is something like this

author:  
     comment_karma: < 10  
     is_submitter: false  

going to cut it or is there an and operation that I can add?

Posted Mar 28, 2019, 2:16 AM UTC

27
SCOveterandretired•

what does the 4th line read?

1
OneCoolAccountOP•

Full rule:

type: comment
    author:
        comment_karma: < 10
        is_submitter: false
    action: remove
    comment_stickied: true
    comment: "...."    
1
SCOveterandretired•

author should be directly under type - the rest of the spacing is correct (move everything 4 space left starting with author)

But why are you going to sticky the comment? No need to sticky, the poster will receive the message.

1
OneCoolAccountOP•

That was I have. I messed up the spacing in the comment.
I have found that when you sticky a comment to a comment for automod it just distinguishes it.

1
SCOveterandretired•

ok, I didn't think about distinguishing the comment.

1
coloneljdogAutoMod Expert•

It should distinguish its comments regardless.

1
coloneljdogAutoMod Expert•

That rule should work. That will check for comments where the author is not the OP and has less than 10 comment karma and then remove it and post a comment in response. Just make sure it's formatted correctly.

​

type: comment
author:
    comment_karma: < 10
    is_submitter: false
action: remove
comment_stickied: true #Not necessary as AM will automatically distinguish its comments and only sticky comments if it's top level.
comment: "...."   
1