-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathtemplate.yml
272 lines (216 loc) · 9.28 KB
/
template.yml
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
# Settings template / documentation
# Whether or not the bot is in debug mode.
# Optional; false by default.
debug: <boolean>
# The directory to save logs to; false to disable saving log files.
# Optional; false by default.
logDirectory: <string | false>
# Your bot token used to log in to Discord with the bot.
token: <string>
# A list of user IDs for owner only commands.
# Optional; empty by default.
owners:
- <string>
- <string>
- ...
# The channel ID of the bot's home channel.
homeChannel: <string>
# Whether the bot should send an embed when a full URL to a ticket gets posted.
ticketUrlsCauseEmbed: <boolean>
# Whether the bot should send an embed when a ticket gets posted inside of a quote.
quotedTicketsCauseEmbed: <boolean>
# A prefix that prevents the bot from posting an embed for a mentioned ticket.
# If this prefix is longer than 1, none of the characters can be used.
# When omitted or empty, no prefix prevents embeds.
forbiddenTicketPrefix: <string>
# Prefix that needs to preceed any mentioned ticket in order for the bot to post an embed
# If this prefix is longer than 1, the entire string needs to prefix any mentioned ticket.
# When omitted or empty, no prefix is required for posting embeds.
requiredTicketPrefix: <string>
# An emoji or emoji ID which, when reacted to a bot embed, deletes it.
embedDeletionEmoji: <string>
# The maximum number of results returned by the jira search command.
maxSearchResults: <number>
# The projects the bot should be able to find tickets for.
projects:
- <string>
- <string>
- ...
# Key-value pairs of field names that should be replaced when using search shortcuts.
# The key should contain the search shortcut to be used.
# The value should contain the valid JQL name for the field.
fieldShortcuts:
<string1>: <stringA>
<string2>: <stringB>
<string3>: <stringC>
# ...
# Jira field names that use the "contains" JQL operator (~), rather than the "equals" operator (=).
containsSearchSyntax:
- <string>
- <string>
- <string>
# Key-value pairs of prepared JQL clauses that are filled with the search argument.
# The key should contain the search shortcut to be used.
# The value should contain the prepared clauses, with a dollar sign where the argument should be inserted.
# The dollar sign should be followed by a question mark if quotes within the argument should be escaped.
# The dollar sign should be followed by an exclamation point if quotes within the argument should not be escaped.
prebuiltClauses:
<string1>: <stringA>
<string2>: <stringB>
<string3>: <stringC>
# ...
# Settings about channels that handle user requests.
request:
# The IDs of the server's request channels.
# Optional; empty by default.
channels:
- <string>
- <string>
- ...
# The IDs of the corresponding internal channels of the request channels.
# All the messages sent in a request channel by users will be forwarded to the respective internal channel by the bot.
# The length of this array MUST be the same as the length of `channels`.
# You MAY use the same internal channel for multiple times.
# Optional; empty by default.
internalChannels:
- <string>
- <string>
- ...
# The number of allowed requests per user per day.
# If the number of requests created by a single user exceeds this amount, new requests will not be forwarded to the internal channels.
# The length of this array MUST be the same as the length of `channels`.
# Setting to a negative number will remove the request limit
# Optional; empty by default.
requestLimits:
- <number>
- <number>
- ...
# The IDs of the server's testing request channels.
# Optional; empty by default.
testingRequestChannels:
- <string>
- <string>
- ...
# A channel which stores logs like `<volunteer> resolved <original message ID> as <emoji>.`
logChannel: <string>
# An emoji or emoji ID which means that the request doesn't contain any valid ticket ID or ticket link.
noLinkEmoji: <string>
# An emoji or emoji ID which means that the request contains a ticket that is invalid.
invalidTicketEmoji: <string>
# The lifetime of the warning about an invalid request, in milliseconds.
warningLifetime: <number>
# Jira search jql that marks a ticket as invalid to make requests for.
invalidRequestJql: <string>
# An emoji or emoji ID which means that the request is waiting to be handled.
# The bot will react to every user's request with this emoji.
waitingEmoji: <string>
# An array of emojis or emoji IDs that volunteers may be interested in.
# Note: volunteers are free to use emoji which aren't in the array.
# This feature is only used to make work more efficient.
# Optional; empty by default.
suggestedEmoji:
- <string>
- <string>
- ...
# An emoji or emoji ID which, when used, doesn't trigger the response template message.
ignorePrependResponseMessageEmoji: <string>
# An emoji or emoji ID which, when used, doesn't resolve the request.
ignoreResolutionEmoji: <string>
# The amount of time in milliseconds between a volunteer reacts to the message and the bot deletes its message.
resolveDelay: <number>
# The amount of time in milliseconds between a volunteer sends a message and the bot deletes the message and adds it to the internal request.
progressMessageAddDelay: <number>
# If and when the message defined in `responseMessage` should be added to an entry in the internal requests channel.
# Optional; never by default.
prependResponseMessage: <'never' | 'whenResolved' | 'always'>
# Whether the message defined in `responseMessage` should be added to the entry in the log channel.
# Optional; false by default.
prependResponseMessageInLog: <boolean>
# The response message to be send for easy copying a message to respond to a request.
# Parameters are {{autor}}, {{url}} and {{message}}.
# {{author}} will be replaced by "@DiscordUser#1234".
# {{url}} will be replaced by the link to the message.
# {{message}} will be replaced by a quote of the contents of the message.
# Optional; empty string by default
responseMessage: <string>
# A list of role groups that users can self-assign roles.
roleGroups:
# A list of self-assignable roles for this group.
- roles:
# The role's ID
- id: <number>
# The role's name.
title: <string>
# Optional; the role's description.
desc: <string>
# The ID of an emoji representing this role.
# This needs to be the ID of a custom emoji currently!
emoji: <number>
- <see above>
- ...
# The prompt that should be shown for the role selection message.
prompt: <string>
# Optional; Further explanation on the role selection.
desc: <string>
# Color of the role selection embed.
color: <string>
# The channel ID of which the role selection message is in.
channel: <string>
# The message ID of this role selection message.
message: <string>
# Whether or not users can only choose one role from this group.
radio: <boolean>
# A list of feeds that should be sent when there are unknown tickets in a specific filter.
filterFeeds:
# The filter's JQL query.
- jql: <string>
# The JQL query for which tickets should be allowed to be reposted that have been posted previously.
# Optional; Only include if cached is set to true
jqlRemoved: <string>
# The ID of the channel in which the feed should be sent.
channel: <string>
# The interval of the check for this filter feed, in milliseconds.
interval: <number>
# The emoji to react to all filter feed messages with.
# Optional; none by default.
filterFeedEmoji: <string>
# The title for this feed embed.
# {{num}} will be replaced by the number of ticket(s).
title: <string>
# The message accompanying this feed embed, in case there's only one ticket.
# If this is not set, `title` will be used instead.
titleSingle: <string>
# Whether the bot should automatically publish feed messages it posts, if the channel is an announcement channel.
# Optional; false by default.
publish: <boolean>
# Whether the bot should cache tickets in the filter feed,
# If false, the property lastRun should be included in the jql, but when true, the filter feed will be less efficient.
# Optional; true by default.
cached: <boolean>
- <see above>
- ...
# A list of feeds that should be sent when there has been a change to a version.
versionFeeds:
# The projects whose versions should be monitored.
- projects:
- <string>
- <string>
- ...
# The ID of the channel in which the feed should be sent.
channel: <string>
# The interval of the check for this version feed, in milliseconds.
interval: <number>
# The emoji to react to all version feed messages with.
# Optional; none by default.
versionFeedEmoji: <string>
# How many versions should be monitored; only the x latest versions are monitored.
scope: <number>
# A list of actions that should be included in the version feed.
actions:
- <'created' | 'released' | 'unreleased' | 'archived' | 'unarchived' | 'renamed'>
- ...
# Whether the bot should automatically publish feed messages it posts, if the channel is an announcement channel.
# Optional; false by default.
publish: <boolean>
- <see above>
- ...