-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdevvit.json
More file actions
147 lines (147 loc) · 4.48 KB
/
Copy pathdevvit.json
File metadata and controls
147 lines (147 loc) · 4.48 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
"$schema": "https://developers.reddit.com/schema/config-file.v1.json",
"name": "<% name %>",
"server": {
"dir": "dist/server",
"entry": "index.cjs"
},
"menu": {
"items": [
{
"label": "[Template] Mop comments",
"description": "Remove this comment and all child comments. This might take a few seconds to run.",
"location": "comment",
"forUserType": "moderator",
"endpoint": "/internal/menu/mop-comment"
},
{
"label": "[Template] Mop post comments",
"description": "Remove all comments of this post. This might take a few seconds to run.",
"location": "post",
"forUserType": "moderator",
"endpoint": "/internal/menu/mop-post"
},
{
"label": "[Template] Create weekly megathread",
"description": "Creates the weekly megathread immediately for testing or manual override.",
"location": "subreddit",
"forUserType": "moderator",
"endpoint": "/internal/menu/create-weekly-megathread"
}
]
},
"forms": {
"mopComment": "/internal/form/mop-comment-submit",
"mopPost": "/internal/form/mop-post-submit"
},
"triggers": {
"onAppInstall": "/internal/triggers/on-app-install",
"onCommentSubmit": "/internal/triggers/on-comment-submit",
"onPostCreate": "/internal/triggers/on-post-create",
"onPostSubmit": "/internal/triggers/on-post-submit"
},
"scheduler": {
"tasks": {
"weeklyMegathreadCheck": {
"endpoint": "/internal/scheduler/weekly-megathread-check",
"cron": "0 0 * * *"
}
}
},
"settings": {
"subreddit": {
"keywordVotesEnabled": {
"type": "boolean",
"label": "Enable keyword vote tally comments",
"defaultValue": false
},
"keywordVoteKeywords": {
"type": "paragraph",
"label": "Keyword vote triggers",
"helpText": "Use one !keyword per line or comma-separated. Maximum 10 keywords.",
"defaultValue": "!agree\n!disagree",
"validationEndpoint": "/internal/settings/validate-keyword-vote-keywords"
},
"bannedWordsEnabled": {
"type": "boolean",
"label": "Enable banned word enforcement",
"defaultValue": false
},
"bannedWordsList": {
"type": "paragraph",
"label": "Banned words and phrases",
"helpText": "Use one word/phrase per line or comma-separated.",
"defaultValue": "",
"validationEndpoint": "/internal/settings/validate-banned-words-list"
},
"weeklyMegathreadEnabled": {
"type": "boolean",
"label": "Enable weekly megathread scheduler",
"defaultValue": false
},
"weeklyMegathreadDayUtc": {
"type": "select",
"label": "Weekly megathread day (UTC)",
"defaultValue": "monday",
"options": [
{
"label": "Sunday",
"value": "sunday"
},
{
"label": "Monday",
"value": "monday"
},
{
"label": "Tuesday",
"value": "tuesday"
},
{
"label": "Wednesday",
"value": "wednesday"
},
{
"label": "Thursday",
"value": "thursday"
},
{
"label": "Friday",
"value": "friday"
},
{
"label": "Saturday",
"value": "saturday"
}
]
},
"weeklyMegathreadTitle": {
"type": "string",
"label": "Weekly megathread title",
"defaultValue": "Weekly Episode Discussion Thread",
"validationEndpoint": "/internal/settings/validate-weekly-megathread-title"
},
"weeklyMegathreadBody": {
"type": "paragraph",
"label": "Weekly megathread body",
"defaultValue": "Welcome to this week's TV discussion thread.\n\nPlease keep spoilers hidden using Reddit spoiler syntax: `>!spoiler text!<` (example: >!the ending reveal!<).\n\nShare your theories, reactions, and favorite moments below.",
"validationEndpoint": "/internal/settings/validate-weekly-megathread-body"
},
"flairUpdaterEnabled": {
"type": "boolean",
"label": "Enable event-driven flair updater",
"defaultValue": false
}
}
},
"scripts": {
"build": "npm run build",
"dev": "npm run build:watch"
},
"permissions": {
"redis": true,
"reddit": {
"enable": true,
"scope": "moderator"
}
}
}