-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.json
More file actions
52 lines (52 loc) · 1.85 KB
/
Copy pathplugin.json
File metadata and controls
52 lines (52 loc) · 1.85 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
{
"name": "adb-plugin-giveaways",
"displayName": "Giveaways",
"version": "1.2.0",
"description": "Host giveaways with configurable duration, winners, and requirements. Reroll support, auto-end, and buttons to enter.",
"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) for button-based entry (interactionCreate), editing the live giveaway message on end, and a node-cron sweep for due giveaways — button collectors and message editing are outside the sandboxed RPC surface."
},
"capabilities": {
"system": ["raw-client"],
"storage": ["own-collection"],
"discord": ["SendMessages", "EmbedLinks", "ManageMessages"]
},
"permissions": {
"system": ["raw-client"],
"storage": ["own-collection"],
"discord": ["SendMessages", "EmbedLinks", "ManageMessages"],
"hooks": ["subscribe"],
"network": { "outbound": [] },
"filesystem": { "read": [], "write": [] },
"childProcess": false,
"nativeAddons": false
},
"declaredDependencies": [{ "package": "node-cron", "version": "^3.0.3" }],
"engines": {
"core": ">=2.0.0",
"plugins": { "administration": ">=2.0.0" }
},
"settings": {
"commandPermissions": true,
"schema": [
{ "key": "defaultDuration", "type": "string", "label": "Default duration (e.g. 1h)" },
{ "key": "maxWinners", "type": "number", "label": "Max winners" }
]
},
"discordPermissions": ["SendMessages", "AddReactions"],
"configSchema": {
"type": "object",
"properties": {
"defaultDuration": { "type": "string", "default": "1h", "description": "Default giveaway duration (e.g., 30m, 1h, 1d)" },
"maxWinners": { "type": "number", "default": 10, "minimum": 1, "maximum": 50, "description": "Max winners per giveaway" }
}
}
}