Repository navigation
Expand file tree
/
Copy pathplugin.json
More file actions
60 lines (60 loc) · 1.92 KB
/
Copy pathplugin.json
File metadata and controls
60 lines (60 loc) · 1.92 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
{
"name": "adb-plugin-template",
"displayName": "Template Plugin",
"version": "2.1.0",
"description": "Starter template for ADB plugins — isolation-ready reference implementation.",
"author": "DeadIndian",
"license": "AGPL-3.0-only",
"main": "index.js",
"requiresRestart": false,
"isolation": true,
"manifestVersion": 2,
"process": {
"model": "pooled",
"maxExecutionMs": 5000,
"memoryMb": 128,
"persistentReason": null
},
"capabilities": {
"storage": ["own-collection"],
"discord": ["SendMessages", "EmbedLinks", "GuildInfo"],
"hooks": ["subscribe"]
},
"permissions": {
"storage": ["own-collection"],
"discord": ["SendMessages", "EmbedLinks", "GuildInfo"],
"hooks": ["subscribe"],
"network": { "outbound": [] },
"filesystem": { "read": [], "write": [] },
"childProcess": false,
"nativeAddons": false
},
"declaredDependencies": [],
"discordPermissions": ["SendMessages", "EmbedLinks"],
"engines": {
"core": ">=2.0.0",
"plugins": { "administration": ">=2.0.0" }
},
"settings": {
"commandPermissions": true,
"schema": [
{ "key": "welcomeMessage", "type": "string", "label": "Welcome message", "default": "Hello from the template plugin!" },
{ "key": "announceChannel", "type": "channel", "label": "Announcement channel" },
{ "key": "staffRole", "type": "role", "label": "Staff role" },
{ "key": "maxPerDay", "type": "number", "label": "Max uses per day", "default": 10 },
{ "key": "featureEnabled", "type": "boolean", "label": "Feature enabled", "default": true },
{ "key": "mode", "type": "select", "label": "Mode", "default": "normal",
"options": [ { "value": "normal", "label": "Normal" }, { "value": "strict", "label": "Strict" } ] }
]
},
"configSchema": {
"type": "object",
"properties": {
"welcomeMessage": {
"type": "string",
"default": "Hello from the template plugin!",
"description": "Message the /example command echoes when given no text"
}
}
}
}