Different attributes a Submission
can be in. Only include a property if you want to check it.
string
A duration and how to compare it against a value
The syntax is (< OR > OR <= OR >=) <number> <unit>
EX > 100 days
, <= 2 months
> 100 days
=> Passes if the date being compared is before 100 days ago<= 2 months
=> Passes if the date being compared is after or equal to 2 monthsUnit must be one of DayJS Duration units
[See] https://regexr.com/609n8 for example
^\s*(>|>=|<|<=)\s*(\d+)\s*(days|weeks|months|years|hours|minutes|seconds|milliseconds)\s*$
anyOf [Array<string>, ModeratorNameCriteria, string ∪ boolean]
anyOf [Array<string>, string ∪ boolean]
true
then passes if ANY colorfalse
then passes if NO coloranyOf [Array<string>, string ∪ boolean]
true
then passes if ANY classfalse
then passes if NO classanyOf [Array<string>, string ∪ boolean]
true
then passes if ANY flairfalse
then passes if NO flairanyOf [Array<string>, string ∪ boolean]
true
then passes if ANY flairfalse
then passes if NO flairanyOf [Array<string>, string]
A relative datetime description to match the date the Activity was created
May be either:
* * 15 *
See https://crontab.guru/ for generating expressions
https://regexr.com/6u3cc
boolean
anyOf [Array<string>, string ∪ boolean]
Test whether the activity is present in dispatched/delayed activities
NOTE: This is DOES NOT mean that THIS activity is from dispatch -- just that it exists there. To test whether THIS activity is from dispatch use source
true
=> activity exists in delayed activitiesfalse
=> activity DOES NOT exist in delayed activitiesstring
=> activity exists in delayed activities with given identifierstring[]
=> activity exists in delayed activities with any of the given identifiersboolean
boolean
anyOf [Array<string>, string ∪ boolean]
true
then passes if there is ANY flair template idfalse
then passes if there is NO flair template idboolean
Is the submission a reddit-hosted image or video?
boolean
anyOf [Array<string>, string ∪ boolean]
true
then passes if ANY colorfalse
then passes if NO coloranyOf [Array<string>, string ∪ boolean]
true
then passes if flair has ANY cssfalse
then passes if flair has NO cssanyOf [Array<string>, string ∪ boolean]
true
then passes if flair has ANY textfalse
then passes if flair has NO textboolean
boolean
NSFW
boolean
anyOf [Array<string>, ModeratorNameCriteria, string ∪ boolean]
string
A string containing a comparison operator, a value to compare against, an (optional) report type filter, an (optional) qualifier for report reason, and an (optional) time constraint
The syntax is (< OR > OR <= OR >=) number[%] [type] [reasonQualifier] [timeValue] [timeUnit]
If only comparison and number is given then defaults to TOTAL reports on an Activity.
> 2
=> greater than 2 total reportsType (optional) determines which type of reports to look at:
mod
-- mod reports
> 3 mod
=> greater than 3 mod reportsuser
-- user reports
> 3 user
=> greater than 3 user reportsReport reason qualifiers can be:
> 1 \harassment towards .*\
=> greater than 1 report with reason matching regex \harassment towards .*\Type and reason qualifiers can be used together:
EX `> 2 user "misinformation" => greater than 2 user reports with reasons containing "misinformation"
The time constraint filter reports created between NOW and [timeConstraint] in the past:
> 3 in 30 minutes
=> more than 3 reports created between NOW and 30 minutes ago> 2 user "misinformation" in 2 hours
=> more than 2 user reports containing "misinformation" created between NOW and 2 hours ago^\s*(>|>=|<|<=)\s*(\d+)(\s*%)?(\s+(?:mods?|users?))?(\s+(?:["'].*["']|\/.*\/))?.*(\d+)?\s*(days?|weeks?|months?|years?|hours?|minutes?|seconds?|milliseconds?)?\s*$
string
A string containing a comparison operator and a value to compare against
The syntax is (< OR > OR <= OR >=) <number>
> 100
=> greater than 100^\s*(>|>=|<|<=)\s*(\d+)\s*(%?)(.*)$
anyOf [Array<string>, string]
Test where the current activity was sourced from.
A source can be any of:
poll
=> activity was retrieved from polling a queue (unmoderated, modqueue, etc...)poll:[pollSource]
=> activity was retrieved from specific polling source IE poll:unmoderated
activity comes from unmoderated queue
dispatch
=> activity is from Dispatch Actiondispatch:[identifier]
=> activity is from Dispatch Action with specific identifieruser
=> activity was from user input (web dashboard)boolean
boolean
boolean
string
A valid regular expression to match against the title of the submission
string ∪ number
Compare the upvote ratio for this Submission, expressed as a whole number
Can be either a comparison string or a number. If a number then CM assumes upvote ratio must be greater than or equal to this.
Example:
< 90
=> less than 90% upvoted