-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.json
More file actions
94 lines (94 loc) · 4.29 KB
/
Copy pathplugin.json
File metadata and controls
94 lines (94 loc) · 4.29 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"name": "adb-plugin-server-logs",
"displayName": "Server Logs",
"version": "1.3.0",
"description": "Comprehensive server logging plugin for tracking member changes, message edits/deletes, moderation actions, voice events, channel changes, and server boosts.",
"author": "DeadIndian",
"main": "index.js",
"requiresRestart": false,
"manifestVersion": 2,
"process": {
"model": "persistent",
"maxExecutionMs": 15000,
"memoryMb": 256,
"persistentReason": "Runs un-isolated (system:raw-client) to fetch audit logs (fetchAuditLogs), read message content and member caches, and inspect voice/channel state on every event — discord.js audit-log and cache APIs are outside the sandboxed RPC surface."
},
"capabilities": {
"system": ["raw-client"],
"storage": ["own-collection"],
"discord": ["SendMessages", "EmbedLinks", "ViewAuditLog", "ManageMessages"],
"hooks": ["subscribe"]
},
"permissions": {
"system": ["raw-client"],
"storage": ["own-collection"],
"discord": ["SendMessages", "EmbedLinks", "ViewAuditLog", "ManageMessages"],
"hooks": ["subscribe"],
"network": { "outbound": [] },
"filesystem": { "read": [], "write": [] },
"childProcess": false,
"nativeAddons": false
},
"declaredDependencies": [{ "package": "node-cron", "version": "^3.0.3" }],
"discordPermissions": ["SendMessages", "EmbedLinks", "ViewAuditLog"],
"engines": {
"core": ">=2.0.0",
"plugins": { "administration": ">=2.0.0" }
},
"settings": {
"commandPermissions": true,
"schema": [
{ "key": "enabled", "type": "boolean", "label": "Enable server logs", "default": true },
{ "key": "membersChannelId", "type": "channel", "label": "Member events log channel" },
{ "key": "messagesChannelId", "type": "channel", "label": "Message events log channel" },
{ "key": "moderationChannelId", "type": "channel", "label": "Moderation log channel" },
{ "key": "voiceChannelId", "type": "channel", "label": "Voice events log channel" },
{ "key": "channelsChannelId", "type": "channel", "label": "Channel events log channel" },
{ "key": "boostsChannelId", "type": "channel", "label": "Boost events log channel" },
{ "key": "retentionDays", "type": "number", "label": "Message cache retention (days)" }
]
},
"dashboard": {
"permissions": [
{ "key": "view", "label": "View", "description": "See logging configuration." },
{ "key": "configure", "label": "Configure", "description": "Set log channels, categories, and retention." },
{ "key": "view-logs", "label": "View logs", "description": "Read the stored/cached message log history." }
]
},
"webUi": {
"memberPages": [
{
"path": "/me/activity",
"label": "My Activity Log",
"icon": "ScrollText",
"source": { "model": "memberEvent", "scope": "member", "sort": { "createdAt": -1 }, "limit": 100 },
"view": {
"type": "table",
"columns": [
{ "field": "category", "label": "Type" },
{ "field": "description", "label": "Event" },
{ "field": "createdAt", "label": "When" }
],
"empty": "No logged activity about you in this server."
}
}
]
},
"configSchema": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"description": "Enable this plugin for the server"
},
"membersChannelId": { "type": "string", "default": null, "description": "Channel ID for member join/leave/update logs" },
"messagesChannelId": { "type": "string", "default": null, "description": "Channel ID for message edit/delete logs" },
"moderationChannelId": { "type": "string", "default": null, "description": "Channel ID for moderation/role logs" },
"voiceChannelId": { "type": "string", "default": null, "description": "Channel ID for voice state logs" },
"channelsChannelId": { "type": "string", "default": null, "description": "Channel ID for channel create/update/delete logs" },
"boostsChannelId": { "type": "string", "default": null, "description": "Channel ID for server boost logs" },
"retentionDays": { "type": "number", "default": 30, "minimum": 1, "maximum": 365, "description": "Days to keep cached messages for edit/delete logging" }
}
}
}