mirror of
https://github.com/FoxxMD/context-mod.git
synced 2026-04-19 03:00:07 -04:00
22 lines
874 B
Plaintext
22 lines
874 B
Plaintext
// goes inside
|
|
// "rules": []
|
|
{
|
|
"name": "swear",
|
|
"kind": "regex",
|
|
"criteria": [
|
|
// triggers if there are more than 5 regex matches in the last 10 activities (comments or submission)
|
|
{
|
|
// triggers if there are more than 5 *total matches* across the last 10 activities
|
|
"regex": "/fuck|shit|damn/",
|
|
// this differs from "activityMatchThreshold"
|
|
//
|
|
// activityMatchThreshold => # of activities from window must match regex
|
|
// totalMatchThreshold => # of matches across all activities from window must match regex
|
|
"totalMatchThreshold": "> 5",
|
|
// if `window` is specified it tells the rule to check the current activity as well as the activities returned from `window`
|
|
// learn more about `window` here https://github.com/FoxxMD/context-mod/blob/master/docs/activitiesWindow.md
|
|
"window": 10,
|
|
},
|
|
]
|
|
}
|