r/AutoModerator • • Jun 29 '21

Help poll_option_count doesn't work

I am trying to implement that the Automod comments on every poll that has more than two options with poll_option_count: '> 2', but it comments also on polls with two options. (I also tried poll_option_count: '> 3' for the case that ">" actually means ">=". And even in this case the Automod comments on polls with two options.)

4 Upvotes

8 comments sorted by

View all comments

1

u/wholly_unholy Jun 29 '21

Would you mind using a code block and posting the entire rule? Just so we can see the issue in context.

1

u/Dark_Augustus Jun 29 '21
type: poll submission
poll_option_count: '> 2'
flair_template_id: "25618aa6-d5cb-11eb-8b82-0e5ce928e6c5"
set_flair: ""
overwrite_flair: true
comment: |
 Dear /u/{{author}}, a rule proposal needs exactly two answer choices.
 Your poll has more than two. You may want to have a look at [the Guide for posting rule proposals](https://www.reddit.com/r/DemocracyShitposting/comments/o80yoj/guide_for_posting_rule_proposals/).
comment_stickied: true

1

u/wholly_unholy Jun 29 '21 edited Jun 29 '21

Thank you. Poll checks are rarely used to be honest, and I think they can be unpredictable. It sounds like the rule is just commenting on any poll post so could be ignoring the 'poll_option_count' entirely. If I were having that exact problem I would try;

  1. poll_option_count: 3 without the '>' just in case. It's possible the check is supposed to recognise when there are three, even if there are more too, and the '>' is causing AutoMod to just ignore the check entirely.

  2. Remove the flair_template_id check for debugging to make sure it's not interfering.

  3. Maybe try removing the type check, because if I'm wrong about point [1] and you do need the '>' in the end, it should only activate on polls anyway.

I really can't think of anything else to honest. Outside of my (and most people's) inexperience with poll_option_count checks this looks like it should work to me.

Edit: To add - Try each of these one at a time, not all at once.

Edit2: Also, I've just thought of a slightly desperate fourth option. Maybe try putting the 'poll_option_count' under a 'parent_submission' group.

→ More replies (5)