upvote.sh

Reddit AutoMod Simulator

Paste your AutoModerator rules and test them on a post or comment before they go live. See which rules fire, which check decided it and what AutoMod would reply.

Try an example:

Paste your config as it appears on your subreddit’s AutoModerator page. Separate rules with a line of three dashes (---). 4 rules found.

Test post or comment

Test this

r/

Leave blank for no flair.

Author

u/

Everything runs in your browser. Your rules and test post are only saved on this device.

What happens to this post

1 of 4 rules fire

Sent to the mod queue

By rule 1 (New accounts)

It stays hidden until a moderator approves it from the mod queue.

Action reason: New account: u/fresh_account_77

Rule by rule

In the order AutoMod runs them: rules that remove, filter or spam first, then the rest, highest priority first.

  • FiresRule 1 · New accountsLine 3 · runs 1st · submission
    • Passes:
      author account_age < 7 days

      Account age is 2 days; the rule wants less than 7 days.

    • Passes:
      author combined_karma < 20

      Combined karma is 11; the rule wants less than 20.

    • Passes:
      author satisfy_any_threshold: true

      At least one karma or age threshold passed, which is enough.

    What happens

    Sent to the mod queue

    Action reason, seen by mods: New account: u/fresh_account_77

    AutoModerator replies

    Thanks for posting, u/fresh_account_77! Posts from new accounts wait for a moderator to approve them, so yours will show up once someone has looked at it.

  • No matchRule 2 · Spam phrasesLine 16 · runs 2nd
    • Fails:
      title+body (includes)

      None of the 4 values appear in the title or body anywhere.

  • Doesn’t applyRule 3 · Short linksLine 22 · runs 3rd · link submission

    This rule is for link posts only, and the test item is a text post.

    • Fails:
      domain (includes-word)

      None of the 5 values appear in the domain as the domain or a subdomain of it.

  • Doesn’t applyRule 4 · Unverified linksLine 32 · runs 4th · comment

    This rule is for comments (type: comment), and the test item is a text post.

    • Fails:
      body (includes-word, regex)

      “https?://” isn’t in the body as a whole word.

    • Passes:
      author has_verified_email: false

      Verified email: no; the rule wants no.

What is Reddit AutoMod?

AutoModerator, or AutoMod, is Reddit’s built-in moderation bot. It checks every new post and comment in a subreddit against rules the moderators write, then removes, filters, reports or approves it. It can also reply, send the author a message or set flair.

Mods write the rules in YAML on the subreddit’s AutoModerator config page, a wiki page at r/yoursubreddit/wiki/config/automoderator. Each rule sits between lines of three dashes (---).

How do you test AutoModerator rules before they go live?

Here’s how to check a rule with the simulator above:

  1. Copy your config from the AutoModerator page and paste it into the rules box. Or start from one of the examples.
  2. Pick a text post, link post or comment, and fill in what you want to test: the title, text, link and flair.
  3. Set the author’s karma, account age and verified email to match the account you have in mind.
  4. Read the verdict, then open any rule to see each check pass or fail, and the exact reply, message and removal reason it would send.

Change one field at a time to find the edge of a rule. For example, set the account age to 6 days and then 8 days to check a "< 7 days" limit.

For a final check, paste the rules into a private test subreddit and post there from a second account. AutoMod also checks your YAML when you save the config page, and it won’t save a config with errors.

How do AutoMod rules work?

Every line in a rule is either a check or an action. AutoMod acts only when all the checks pass. Here’s a rule that sends posts from new or low-karma accounts to the mod queue:

type: submission
author:
    account_age: "< 7 days"
    combined_karma: "< 20"
    satisfy_any_threshold: true
action: filter
action_reason: "New account: u/{{author}}"
  • Checks look at fields such as title, body, domain, url and flair_text, or at the author’s karma, age and verified email.
  • Lists such as [free, giveaway] match if any value matches. Join fields with a plus, like title+body, to search both.
  • A tilde in front, like ~title, flips a check, so it passes when the value is missing.
  • Thresholds use <, > or a bare number for “exactly”. Account age takes minutes, hours, days, weeks, months or years.
  • Actions are remove, filter (remove and send to the mod queue), spam, approve and report.

Modifiers in brackets after the field change how a value matches, as in title (starts-with):

  • includes-word matches a whole word or phrase. The default for title and body.
  • includes matches anywhere, even inside a longer word. The default for url.
  • starts-with / ends-with matches at the start or end of the field.
  • full-exact the whole field must be exactly this. The default for flair.
  • full-text like full-exact, but ignores spaces and punctuation at the ends.
  • regex reads the value as a regular expression.
  • case-sensitive makes upper and lower case count. Matching ignores case otherwise.

Why isn’t my AutoMod rule working?

When a rule doesn’t fire on Reddit, check these first. The simulator flags most of them for you:

  • You tested it as a mod. AutoMod skips moderators for rules that remove, filter, spam or report. Test from a regular account, or add moderators_exempt: false.
  • Whole-word matching. By default, title: [free] matches “free” but not “freebies”. Add (includes) to match inside words.
  • The rule targets the wrong kind of item. A rule that checks the title only runs on posts. Comments only have a body.
  • The comparison isn’t quoted. In YAML, an unquoted > starts a block of text, so write "> 10". AutoMod also doesn’t understand <= or >=.
  • Another rule removed it first. Once one rule removes an item, AutoMod stops checking the other removal rules. Use priority to run the important one first.

What can’t the simulator check?

Some checks depend on data only Reddit has: Contributor Quality Score (CQS), karma inside one subreddit, reports, edits, crossposts, polls, galleries and media embeds. The simulator marks rules that use them as “Can’t tell” instead of guessing, and lists every key it doesn’t evaluate.

Reddit’s own spam filter and crowd control also act on posts separately from AutoMod. If you want to see how Reddit rates an account, try the CQS checker.

Posting in a subreddit with strict rules? We can write the post for you and publish it from an aged account. See Reddit posts.

Want a post written for a subreddit’s rules?

We write Reddit posts and publish them from aged accounts. You approve the subreddit and the draft first.