mirror of
https://github.com/FoxxMD/context-mod.git
synced 2026-01-14 16:08:02 -05:00
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
{
|
|
"checks": [
|
|
{
|
|
"name": "Self Promo Activities",
|
|
"description": "Check if any of Author's aggregated submission origins are >10% of entire history",
|
|
// check will run on a new submission in your subreddit and look at the Author of that submission
|
|
"kind": "submission",
|
|
"rules": [
|
|
{
|
|
"name": "attr10all",
|
|
"kind": "attribution",
|
|
"criteria": [
|
|
{
|
|
"threshold": "> 10%",
|
|
"window": "90 days"
|
|
},
|
|
{
|
|
"threshold": "> 10%",
|
|
"window": 100
|
|
}
|
|
],
|
|
}
|
|
],
|
|
"actions": [
|
|
{
|
|
"kind": "usernote",
|
|
// the key of usernote type
|
|
// https://github.com/toolbox-team/reddit-moderator-toolbox/wiki/Subreddit-Wikis%3A-usernotes#working-with-note-types
|
|
"type": "spamwarn",
|
|
// content is mustache templated as usual
|
|
"content": "Self Promotion: {{rules.attr10all.titlesDelim}} {{rules.attr10sub.largestPercent}}%"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|