-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.json
More file actions
71 lines (71 loc) · 2.33 KB
/
Copy pathplugin.json
File metadata and controls
71 lines (71 loc) · 2.33 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
{
"name": "adb-plugin-counting",
"displayName": "Counting",
"version": "1.3.0",
"description": "Number counting game. Users take turns counting sequentially. Wrong numbers or double-posting resets the count.",
"author": "DeadIndian",
"main": "index.js",
"requiresRestart": true,
"isolation": false,
"manifestVersion": 2,
"process": {
"model": "persistent",
"maxExecutionMs": 10000,
"memoryMb": 256,
"persistentReason": "Runs un-isolated (system:raw-client) to police the counting channel on every message — delete invalid counts, react to valid ones, and read live message objects — none of which the sandboxed RPC surface exposes."
},
"capabilities": {
"system": ["raw-client"],
"storage": ["own-collection"],
"discord": ["SendMessages", "ManageMessages", "AddReactions"]
},
"permissions": {
"system": ["raw-client"],
"storage": ["own-collection"],
"discord": ["SendMessages", "ManageMessages", "AddReactions"],
"hooks": ["subscribe"],
"network": { "outbound": [] },
"filesystem": { "read": [], "write": [] },
"childProcess": false,
"nativeAddons": false
},
"declaredDependencies": [],
"engines": {
"core": ">=2.0.0",
"plugins": { "administration": ">=2.0.0" }
},
"settings": {
"commandPermissions": true,
"schema": [
{ "key": "channel", "type": "channel", "label": "Counting channel" },
{ "key": "resetOnFail", "type": "boolean", "label": "Reset count on mistake", "default": true }
]
},
"discordPermissions": ["SendMessages", "ManageMessages", "AddReactions"],
"webUi": {
"memberPages": [
{
"path": "/me/counting-stats",
"label": "My Counting Stats",
"icon": "Hash",
"source": { "model": "userStats", "scope": "member", "limit": 1 },
"view": {
"type": "stat",
"stats": [
{ "field": "correct", "label": "Correct Numbers" },
{ "field": "fails", "label": "Mistakes" },
{ "field": "highest", "label": "Highest Reached" }
]
}
}
]
},
"configSchema": {
"type": "object",
"properties": {
"channel": { "type": "string", "description": "Channel ID where counting happens" },
"resetOnFail": { "type": "boolean", "default": true, "description": "Reset to 0 on wrong count" },
"milestones": { "type": "string", "default": "10,25,50,100,250,500,1000", "description": "Comma-separated milestones that trigger a celebratory message" }
}
}
}