mirror of
https://github.com/FoxxMD/context-mod.git
synced 2026-04-19 03:00:07 -04:00
* Add Runs to main docs readme and concepts * Add high level diagram in main docs readme to show CM lifecycle * Refactor subreddit/rule examples to use runs syntax
82 lines
2.5 KiB
Plaintext
82 lines
2.5 KiB
Plaintext
{
|
|
"polling": ["unmoderated"],
|
|
"runs": [
|
|
{
|
|
"checks": [
|
|
{
|
|
//
|
|
// Stop users who post low-effort, crossposted spam
|
|
//
|
|
// Remove a SUBMISSION if the user has crossposted it at least 4 times in recent history AND
|
|
// less than 50% of their activity is comments OR more than 40% of those comments are as OP (in the own submissions)
|
|
//
|
|
"name": "low xp spam and engagement",
|
|
"description": "X-posted 4x and low comment engagement",
|
|
"kind": "submission",
|
|
"itemIs": [
|
|
{
|
|
"removed": false
|
|
}
|
|
],
|
|
"condition": "AND",
|
|
"rules": [
|
|
{
|
|
"name": "xPostLow",
|
|
"kind": "repeatActivity",
|
|
"gapAllowance": 2,
|
|
"threshold": ">= 4",
|
|
"window": {
|
|
"count": 50,
|
|
"duration": "6 months"
|
|
}
|
|
},
|
|
{
|
|
"name": "lowOrOpComm",
|
|
"kind": "history",
|
|
"criteriaJoin": "OR",
|
|
"criteria": [
|
|
{
|
|
"window": {
|
|
"count": 100,
|
|
"duration": "6 months"
|
|
},
|
|
"comment": "< 50%"
|
|
},
|
|
{
|
|
"window": {
|
|
"count": 100,
|
|
"duration": "6 months"
|
|
},
|
|
"comment": "> 40% OP"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"actions": [
|
|
// remove this after confirming behavior is acceptable
|
|
{
|
|
"kind": "report",
|
|
"content": "Remove=>{{rules.xpostlow.largestRepeat}} X-P => {{rules.loworopcomm.thresholdSummary}}"
|
|
},
|
|
//
|
|
//
|
|
{
|
|
"kind": "remove",
|
|
// remove the line below after confirming behavior is acceptable
|
|
"dryRun": true
|
|
},
|
|
// optionally remove "dryRun" from below if you want to leave a comment on removal
|
|
// PROTIP: the comment is bland, you should make it better
|
|
{
|
|
"kind": "comment",
|
|
"content": "Your submission has been removed because you cross-posted it {{rules.xpostlow.largestRepeat}} times and you have very low engagement outside of making submissions",
|
|
"distinguish": true,
|
|
"dryRun": true
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
}
|