-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommunityConfig.json.example
64 lines (64 loc) · 1.33 KB
/
communityConfig.json.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"COMMUNITY NAME": {
"triggers": [
{
"triggerType": "post_DuplicateUrl",
"actions": [
{
"type": "postComment",
"content": "This post has been locked because the linked URL is already discussed here: {existingPost.post.ap_id}."
},
{
"type": "lock",
"value": true
}
]
},
{
"triggerType": "post_Regex",
"fields": ["url", "name", "body"],
"regex": "^\\[HELP\\].*",
"invert": true,
"actions": [
{
"type": "remove",
"value": true,
"reason": "Post titles need to start with \\[HELP\\]"
}
]
},
{
"triggerType": "post_Regex",
"fields": ["url", "name", "body"],
"regex": ".*reddit.*",
"actions": [
{
"type": "remove",
"value": true,
"reason": "This post was removed because bad words aren't allowed here!"
}
]
},
{
"triggerType": "comment_Regex",
"regex": ".*reddit.*",
"actions": [
{
"type": "edit",
"content": "[Removed by moderator. We don't want this kind of talk here.]"
}
]
},
{
"triggerType": "comment_Regex",
"regex": ".*lego.*",
"actions": [
{
"type": "postComment",
"content": "Seems like you are talking about Lego. Be aware, they might sue you if you write anything they don't like."
}
]
}
]
}
}