3 |
const { escapeRegex } = require("../src/util"); |
const { escapeRegex } = require("../src/util"); |
4 |
|
|
5 |
module.exports = { |
module.exports = { |
6 |
version: "1.0.0-beta", |
version: "1.4.0", |
7 |
commands: [ |
commands: [ |
8 |
{ |
{ |
9 |
name: 'addsnippet', |
name: 'addsnippet', |
46 |
notes: null |
notes: null |
47 |
}, |
}, |
48 |
{ |
{ |
49 |
|
name: 'clear', |
50 |
|
shortBrief: "Clear all messages from a user.", |
51 |
|
description: "Clear all messages from a user, in the current channel. This might take a while.", |
52 |
|
structure: "<UserID|UserMention>", |
53 |
|
example: "`%%clear 83474924191884727`\n`%%clear @Someone`", |
54 |
|
notes: null |
55 |
|
}, |
56 |
|
{ |
57 |
name: 'delsnippet', |
name: 'delsnippet', |
58 |
shortBrief: "Deletes a snippet.", |
shortBrief: "Deletes a snippet.", |
59 |
description: null, |
description: null, |
94 |
notes: null |
notes: null |
95 |
}, |
}, |
96 |
{ |
{ |
97 |
|
name: 'history', |
98 |
|
shortBrief: "Show moderation history for a user.", |
99 |
|
description: null, |
100 |
|
structure: "<UserMention|UserID>", |
101 |
|
example: "`%%history 27372628277272625`\n`%%history @Someone`", |
102 |
|
notes: null |
103 |
|
}, |
104 |
|
{ |
105 |
name: 'httpcat', |
name: 'httpcat', |
106 |
shortBrief: "Get some funny cat memes related to HTTP.", |
shortBrief: "Get some funny cat memes related to HTTP.", |
107 |
description: "Get some funny cat memes related to HTTP status codes, using http.cat API.", |
description: "Get some funny cat memes related to HTTP status codes, using http.cat API.", |
193 |
notes: null |
notes: null |
194 |
}, |
}, |
195 |
{ |
{ |
|
name: 'note', |
|
|
shortBrief: "Take a note about an user.", |
|
|
description: null, |
|
|
structure: "<UserID|UserMention> <note>", |
|
|
example: "`%%note @Someone Simple note.`", |
|
|
notes: null |
|
|
}, |
|
|
{ |
|
196 |
name: 'notedel', |
name: 'notedel', |
197 |
shortBrief: "Delete a note.", |
shortBrief: "Delete a note.", |
198 |
description: null, |
description: null, |
241 |
notes: null |
notes: null |
242 |
}, |
}, |
243 |
{ |
{ |
244 |
|
name: 'send', |
245 |
|
shortBrief: "Send a DM to a user.", |
246 |
|
description: null, |
247 |
|
structure: "<UserID|Mention> <content>", |
248 |
|
example: "`%%send 278358918549759428 Hello world`\n`%%send @Someone Hello world`", |
249 |
|
notes: null |
250 |
|
}, |
251 |
|
{ |
252 |
name: 'spamfilter', |
name: 'spamfilter', |
253 |
shortBrief: "Change the spam filter configuration keys.", |
shortBrief: "Change the spam filter configuration keys.", |
254 |
description: null, |
description: null, |
266 |
}, |
}, |
267 |
{ |
{ |
268 |
name: 'unlock', |
name: 'unlock', |
269 |
shortBrief: "Unock a specific channel.", |
shortBrief: "Unlock a specific channel.", |
270 |
description: "Makes the given channel writable for the general members. If no channel is present, the current channel is unlocked.", |
description: "Makes the given channel writable for the general members. If no channel is present, the current channel is unlocked.", |
271 |
structure: "[ChannelID|ChannelMention] [...options]", |
structure: "[ChannelID|ChannelMention] [...options]", |
272 |
example: "`%%unlock 385753607325075320`\n`%%unlock #general`\n`%%unlock`", |
example: "`%%unlock 385753607325075320`\n`%%unlock #general`\n`%%unlock`", |
273 |
notes: null, |
notes: null, |
274 |
options: { |
options: { |
275 |
"--no-send": "Do not send a confirmation message to the locked channel", |
"--no-send": "Do not send a confirmation message to the locked channel", |
276 |
"--everyone": "Unock the channels for @everyone rather than the general role", |
"--everyone": "Unlock the channels for @everyone rather than the general role", |
277 |
} |
} |
278 |
}, |
}, |
279 |
{ |
{ |
286 |
options: { |
options: { |
287 |
"--no-send": "Do not send a confirmation message to the locked channel", |
"--no-send": "Do not send a confirmation message to the locked channel", |
288 |
"--everyone": "Lock the channels for @everyone rather than the general role", |
"--everyone": "Lock the channels for @everyone rather than the general role", |
289 |
|
"--raid": "Unlock all Raid-locked channels" |
290 |
} |
} |
291 |
}, |
}, |
292 |
{ |
{ |
293 |
name: 'unmute', |
name: 'unmute', |
294 |
shortBrief: "Unute someone in this server.", |
shortBrief: "Unmute someone in this server.", |
295 |
description: null, |
description: null, |
296 |
structure: "<UserID|Mention>", |
structure: "<UserID|Mention>", |
297 |
example: "`%%unmute 385753607325075320`\n`%%unmute @Someone You are spamming a lot`", |
example: "`%%unmute 385753607325075320`\n`%%unmute @Someone You are spamming a lot`", |