adb-plugin-moderation 1.0.1 → 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.
- package/package.json +2 -2
- package/plugin.json +153 -63
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adb-plugin-moderation",
|
|
3
|
-
"version": "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,65 +1,155 @@
|
|
|
1
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
|
-
|
|
2
|
+
"name": "adb-plugin-moderation",
|
|
3
|
+
"displayName": "Basic Moderation",
|
|
4
|
+
"version": "1.2.0",
|
|
5
|
+
"description": "Core moderation commands: ban, kick, timeout, warn, purge, tickets, and case logging.",
|
|
6
|
+
"author": "DeadIndian",
|
|
7
|
+
"main": "index.js",
|
|
8
|
+
"requiresRestart": true,
|
|
9
|
+
"isolation": false,
|
|
10
|
+
"manifestVersion": 2,
|
|
11
|
+
"process": {
|
|
12
|
+
"model": "persistent",
|
|
13
|
+
"maxExecutionMs": 15000,
|
|
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 \u2014 direct discord.js operations the sandboxed RPC surface cannot express."
|
|
16
|
+
},
|
|
17
|
+
"capabilities": {
|
|
18
|
+
"system": [
|
|
19
|
+
"raw-client"
|
|
20
|
+
],
|
|
21
|
+
"storage": [
|
|
22
|
+
"own-collection"
|
|
23
|
+
],
|
|
24
|
+
"discord": [
|
|
25
|
+
"BanMembers",
|
|
26
|
+
"KickMembers",
|
|
27
|
+
"ModerateMembers",
|
|
28
|
+
"ManageMessages",
|
|
29
|
+
"ManageChannels",
|
|
30
|
+
"SendMessages",
|
|
31
|
+
"GuildInfo"
|
|
32
|
+
],
|
|
33
|
+
"hooks": [
|
|
34
|
+
"subscribe"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"permissions": {
|
|
38
|
+
"system": [
|
|
39
|
+
"raw-client"
|
|
40
|
+
],
|
|
41
|
+
"storage": [
|
|
42
|
+
"own-collection"
|
|
43
|
+
],
|
|
44
|
+
"discord": [
|
|
45
|
+
"BanMembers",
|
|
46
|
+
"KickMembers",
|
|
47
|
+
"ModerateMembers",
|
|
48
|
+
"ManageMessages",
|
|
49
|
+
"ManageChannels",
|
|
50
|
+
"SendMessages",
|
|
51
|
+
"GuildInfo"
|
|
52
|
+
],
|
|
53
|
+
"hooks": [
|
|
54
|
+
"subscribe"
|
|
55
|
+
],
|
|
56
|
+
"network": {
|
|
57
|
+
"outbound": []
|
|
58
|
+
},
|
|
59
|
+
"filesystem": {
|
|
60
|
+
"read": [],
|
|
61
|
+
"write": []
|
|
62
|
+
},
|
|
63
|
+
"childProcess": false,
|
|
64
|
+
"nativeAddons": false
|
|
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
|
+
},
|
|
103
|
+
"declaredDependencies": [],
|
|
104
|
+
"discordPermissions": [
|
|
105
|
+
"BanMembers",
|
|
106
|
+
"KickMembers",
|
|
107
|
+
"ModerateMembers",
|
|
108
|
+
"ManageMessages",
|
|
109
|
+
"ManageChannels"
|
|
110
|
+
],
|
|
111
|
+
"configSchema": {
|
|
112
|
+
"type": "object",
|
|
113
|
+
"properties": {
|
|
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
|
+
},
|
|
130
|
+
"warn_thresholds": {
|
|
131
|
+
"type": "object",
|
|
132
|
+
"default": {
|
|
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
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"dm_on_action": {
|
|
150
|
+
"type": "boolean",
|
|
151
|
+
"default": true
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
65
155
|
}
|