mirror of
https://github.com/FoxxMD/context-mod.git
synced 2026-04-19 03:00:07 -04:00
45 lines
1.5 KiB
Plaintext
45 lines
1.5 KiB
Plaintext
{
|
|
"runs": [
|
|
{
|
|
"checks": [
|
|
{
|
|
"name": "Self Promo Submissions",
|
|
"description": "Check if any of Author's aggregated submission origins are >10% of their submissions",
|
|
// check will run on a new submission in your subreddit and look at the Author of that submission
|
|
"kind": "submission",
|
|
"rules": [
|
|
{
|
|
"name": "attr10sub",
|
|
"kind": "attribution",
|
|
// criteria defaults to OR -- so either of these criteria will trigger the rule
|
|
"criteria": [
|
|
{
|
|
// threshold can be a percent or an absolute number
|
|
"threshold": "> 10%",
|
|
// calculate percentage of submissions, rather than entire history (submissions & comments)
|
|
"thresholdOn": "submissions",
|
|
|
|
// look at last 90 days of Author's activities (comments and submissions)
|
|
"window": "90 days"
|
|
},
|
|
{
|
|
"threshold": "> 10%",
|
|
"thresholdOn": "submissions",
|
|
// look at Author's last 100 activities (comments and submissions)
|
|
"window": 100
|
|
}
|
|
],
|
|
}
|
|
],
|
|
"actions": [
|
|
{
|
|
"kind": "report",
|
|
"content": "{{rules.attr10sub.largestPercent}}% of {{rules.attr10sub.activityTotal}} items over {{rules.attr10sub.window}}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|