-
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.31 KB
/
Copy pathplugin.json
File metadata and controls
71 lines (71 loc) · 2.31 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-invite-tracker",
"displayName": "Invite Tracker",
"version": "1.3.0",
"description": "Track who invited whom. Invite leaderboard, join/leave logging, fake join detection, and milestone roles.",
"author": "DeadIndian",
"main": "index.js",
"requiresRestart": true,
"isolation": false,
"manifestVersion": 2,
"process": {
"model": "persistent",
"maxExecutionMs": 15000,
"memoryMb": 256,
"persistentReason": "Runs un-isolated (system:raw-client) to diff guild.invites.fetch() on member join (the only way to attribute an invite), maintain an invite cache on ready/inviteCreate/inviteDelete, and grant milestone roles — the invite-manager API and role mutation are outside the sandboxed RPC surface."
},
"capabilities": {
"system": ["raw-client"],
"storage": ["own-collection"],
"discord": ["ManageGuild", "ManageRoles", "SendMessages"]
},
"permissions": {
"system": ["raw-client"],
"storage": ["own-collection"],
"discord": ["ManageGuild", "ManageRoles", "SendMessages"],
"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": "trackLeaves", "type": "boolean", "label": "Track leaves", "default": true }
]
},
"discordPermissions": ["ManageGuild", "ManageRoles", "SendMessages"],
"webUi": {
"memberPages": [
{
"path": "/me/invites",
"label": "My Invites",
"icon": "UserPlus",
"source": { "model": "inviteStats", "scope": "member", "limit": 1 },
"view": {
"type": "stat",
"stats": [
{ "field": "totalInvites", "label": "Total" },
{ "field": "regularInvites", "label": "Regular" },
{ "field": "leaveInvites", "label": "Left" },
{ "field": "fakeInvites", "label": "Fake" },
{ "field": "bonusInvites", "label": "Bonus" }
]
}
}
]
},
"configSchema": {
"type": "object",
"properties": {
"trackLeaves": { "type": "boolean", "default": true, "description": "Deduct invite credit when an invited member leaves" },
"bonusRoles": { "type": "string", "default": "", "description": "Comma-separated: roleID:inviteCount e.g. 123:5,456:10" }
}
}
}