-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.json
More file actions
57 lines (57 loc) · 2.01 KB
/
Copy pathplugin.json
File metadata and controls
57 lines (57 loc) · 2.01 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
{
"name": "adb-plugin-levels",
"displayName": "Levels & XP System",
"version": "1.2.0",
"description": "Track user activity with XP, levels, and role rewards.",
"engines": {
"core": ">=2.0.0",
"plugins": { "administration": ">=2.0.0" }
},
"settings": {
"commandPermissions": true,
"schema": [
{ "key": "xpPerMessage", "type": "number", "label": "XP per message", "default": 5 },
{ "key": "xpCooldown", "type": "number", "label": "XP cooldown (seconds)", "default": 60 },
{ "key": "xpPerMinuteLimit", "type": "number", "label": "XP per minute limit", "default": 100 },
{ "key": "levelUpChannelId", "type": "channel", "label": "Level-up announcement channel" }
]
},
"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 award XP on every message, grant role rewards (member.roles.add), and announce level-ups in a live channel — role mutation and message-object access the sandboxed RPC surface does not provide."
},
"capabilities": {
"system": ["raw-client"],
"storage": ["own-collection"],
"discord": ["ManageRoles", "SendMessages"],
"hooks": ["emit"]
},
"permissions": {
"system": ["raw-client"],
"storage": ["own-collection"],
"discord": ["ManageRoles", "SendMessages"],
"hooks": ["emit"],
"network": { "outbound": [] },
"filesystem": { "read": [], "write": [] },
"childProcess": false,
"nativeAddons": false
},
"declaredDependencies": [],
"discordPermissions": ["ManageRoles", "SendMessages"],
"configSchema": {
"type": "object",
"properties": {
"xpPerMessage": { "type": "number", "default": 5, "minimum": 1, "maximum": 50 },
"xpCooldown": { "type": "number", "default": 60, "minimum": 10, "maximum": 300 },
"xpPerMinuteLimit": { "type": "number", "default": 100, "minimum": 10, "maximum": 1000 },
"levelUpChannelId": { "type": "string", "default": null }
}
}
}