adb-plugin-moderation 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/plugin.json +98 -19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adb-plugin-moderation",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Core moderation commands for Advanced Discord Bot",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -29,4 +29,4 @@
29
29
  "devDependencies": {
30
30
  "mongoose": "^8.0.0"
31
31
  }
32
- }
32
+ }
package/plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adb-plugin-moderation",
3
3
  "displayName": "Basic Moderation",
4
- "version": "1.1.0",
4
+ "version": "1.2.0",
5
5
  "description": "Core moderation commands: ban, kick, timeout, warn, purge, tickets, and case logging.",
6
6
  "author": "DeadIndian",
7
7
  "main": "index.js",
@@ -12,11 +12,15 @@
12
12
  "model": "persistent",
13
13
  "maxExecutionMs": 15000,
14
14
  "memoryMb": 256,
15
- "persistentReason": "Runs un-isolated (system:raw-client) for bulk message purge, channel lock/slowmode, ticket channel creation, and live guild/member lookups direct discord.js operations the sandboxed RPC surface cannot express."
15
+ "persistentReason": "Runs un-isolated (system:raw-client) for bulk message purge, channel lock/slowmode, ticket channel creation, and live guild/member lookups \u2014 direct discord.js operations the sandboxed RPC surface cannot express."
16
16
  },
17
17
  "capabilities": {
18
- "system": ["raw-client"],
19
- "storage": ["own-collection"],
18
+ "system": [
19
+ "raw-client"
20
+ ],
21
+ "storage": [
22
+ "own-collection"
23
+ ],
20
24
  "discord": [
21
25
  "BanMembers",
22
26
  "KickMembers",
@@ -26,11 +30,17 @@
26
30
  "SendMessages",
27
31
  "GuildInfo"
28
32
  ],
29
- "hooks": ["subscribe"]
33
+ "hooks": [
34
+ "subscribe"
35
+ ]
30
36
  },
31
37
  "permissions": {
32
- "system": ["raw-client"],
33
- "storage": ["own-collection"],
38
+ "system": [
39
+ "raw-client"
40
+ ],
41
+ "storage": [
42
+ "own-collection"
43
+ ],
34
44
  "discord": [
35
45
  "BanMembers",
36
46
  "KickMembers",
@@ -40,12 +50,56 @@
40
50
  "SendMessages",
41
51
  "GuildInfo"
42
52
  ],
43
- "hooks": ["subscribe"],
44
- "network": { "outbound": [] },
45
- "filesystem": { "read": [], "write": [] },
53
+ "hooks": [
54
+ "subscribe"
55
+ ],
56
+ "network": {
57
+ "outbound": []
58
+ },
59
+ "filesystem": {
60
+ "read": [],
61
+ "write": []
62
+ },
46
63
  "childProcess": false,
47
64
  "nativeAddons": false
48
65
  },
66
+ "engines": {
67
+ "core": ">=2.0.0",
68
+ "plugins": {
69
+ "administration": ">=2.0.0"
70
+ }
71
+ },
72
+ "settings": {
73
+ "commandPermissions": true,
74
+ "schema": [
75
+ {
76
+ "key": "log_channel_id",
77
+ "type": "channel",
78
+ "label": "Mod log channel"
79
+ },
80
+ {
81
+ "key": "ticket_category_id",
82
+ "type": "string",
83
+ "label": "Ticket category ID"
84
+ },
85
+ {
86
+ "key": "ticket_support_role_id",
87
+ "type": "role",
88
+ "label": "Ticket support role"
89
+ },
90
+ {
91
+ "key": "ticket_log_channel_id",
92
+ "type": "channel",
93
+ "label": "Ticket log channel"
94
+ },
95
+ {
96
+ "key": "dm_on_action",
97
+ "type": "boolean",
98
+ "label": "DM user on mod action",
99
+ "default": true
100
+ }
101
+ ]
102
+ },
49
103
  "declaredDependencies": [],
50
104
  "discordPermissions": [
51
105
  "BanMembers",
@@ -57,20 +111,45 @@
57
111
  "configSchema": {
58
112
  "type": "object",
59
113
  "properties": {
60
- "log_channel_id": { "type": "string", "default": null },
61
- "ticket_category_id": { "type": "string", "default": null },
62
- "ticket_support_role_id": { "type": "string", "default": null },
63
- "ticket_log_channel_id": { "type": "string", "default": null },
114
+ "log_channel_id": {
115
+ "type": "string",
116
+ "default": null
117
+ },
118
+ "ticket_category_id": {
119
+ "type": "string",
120
+ "default": null
121
+ },
122
+ "ticket_support_role_id": {
123
+ "type": "string",
124
+ "default": null
125
+ },
126
+ "ticket_log_channel_id": {
127
+ "type": "string",
128
+ "default": null
129
+ },
64
130
  "warn_thresholds": {
65
131
  "type": "object",
66
132
  "default": {
67
- "3": { "action": "timeout", "duration": "1h" },
68
- "5": { "action": "timeout", "duration": "24h" },
69
- "7": { "action": "kick" },
70
- "10": { "action": "ban" }
133
+ "3": {
134
+ "action": "timeout",
135
+ "duration": "1h"
136
+ },
137
+ "5": {
138
+ "action": "timeout",
139
+ "duration": "24h"
140
+ },
141
+ "7": {
142
+ "action": "kick"
143
+ },
144
+ "10": {
145
+ "action": "ban"
146
+ }
71
147
  }
72
148
  },
73
- "dm_on_action": { "type": "boolean", "default": true }
149
+ "dm_on_action": {
150
+ "type": "boolean",
151
+ "default": true
152
+ }
74
153
  }
75
154
  }
76
155
  }