mirror of
https://github.com/FoxxMD/context-mod.git
synced 2026-04-19 03:00:07 -04:00
48 lines
1.5 KiB
Plaintext
48 lines
1.5 KiB
Plaintext
{
|
|
"checks": [
|
|
{
|
|
"name": "Self Promo Activities",
|
|
"description": "Tag SP only if user does not have good contributor user note",
|
|
// 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",
|
|
"author": {
|
|
"exclude": [
|
|
{
|
|
// the key of the usernote type to look for https://github.com/toolbox-team/reddit-moderator-toolbox/wiki/Subreddit-Wikis%3A-usernotes#working-with-note-types
|
|
// rule will not run if current usernote on Author is of type 'gooduser'
|
|
"type": "gooduser"
|
|
}
|
|
]
|
|
},
|
|
"criteria": [
|
|
{
|
|
"threshold": "10%",
|
|
"window": {
|
|
"days": 90
|
|
}
|
|
},
|
|
{
|
|
"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.refDomainTitle}} {{rules.attr10sub.largestPercent}}%"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|