mirror of
https://github.com/FoxxMD/context-mod.git
synced 2026-04-19 03:00:07 -04:00
80 lines
2.2 KiB
Plaintext
80 lines
2.2 KiB
Plaintext
{
|
|
"polling": ["newComm"],
|
|
"runs": [
|
|
{
|
|
"checks": [
|
|
{
|
|
"name": "ban discord only spammer",
|
|
"description": "ban a user who spams only a discord link many times historically",
|
|
"kind": "comment",
|
|
"condition": "AND",
|
|
"rules": [
|
|
"linkOnlySpam",
|
|
"linkAnywhereHistoricalSpam",
|
|
],
|
|
"actions": [
|
|
{
|
|
"kind": "remove"
|
|
},
|
|
{
|
|
"kind": "ban",
|
|
"content": "spamming discord links"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "remove discord spam",
|
|
"description": "remove comments from users who only link to discord or mention discord link many times historically",
|
|
"kind": "comment",
|
|
"condition": "OR",
|
|
"rules": [
|
|
{
|
|
"name": "linkOnlySpam",
|
|
"kind": "regex",
|
|
"criteria": [
|
|
{
|
|
"name": "only link",
|
|
"regex": "/^.*(discord\\.gg\\/[\\w\\d]+)$/i",
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"condition": "AND",
|
|
"rules": [
|
|
{
|
|
"name": "linkAnywhereSpam",
|
|
"kind": "regex",
|
|
"criteria": [
|
|
{
|
|
"name": "contains link anywhere",
|
|
"regex": "/^.*(discord\\.gg\\/[\\w\\d]+).*$/i",
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "linkAnywhereHistoricalSpam",
|
|
"kind": "regex",
|
|
"criteria": [
|
|
{
|
|
"name": "contains links anywhere historically",
|
|
"regex": "/^.*(discord\\.gg\\/[\\w\\d]+).*$/i",
|
|
"totalMatchThreshold": ">= 3",
|
|
"lookAt": "comments",
|
|
"window": 10
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"actions": [
|
|
{
|
|
"kind": "remove"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
}
|