stoatx 0.5.0 → 0.5.2
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/README.md +2 -2
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -5
- package/dist/index.mjs.map +1 -0
- package/package.json +4 -10
- package/dist/.tsbuildinfo +0 -1
- package/dist/decorators/Events.d.ts +0 -55
- package/dist/decorators/Events.d.ts.map +0 -1
- package/dist/decorators/Events.js +0 -71
- package/dist/decorators/Events.js.map +0 -1
- package/dist/decorators/Guard.d.ts +0 -38
- package/dist/decorators/Guard.d.ts.map +0 -1
- package/dist/decorators/Guard.js +0 -47
- package/dist/decorators/Guard.js.map +0 -1
- package/dist/decorators/SimpleCommand.d.ts +0 -35
- package/dist/decorators/SimpleCommand.d.ts.map +0 -1
- package/dist/decorators/SimpleCommand.js +0 -43
- package/dist/decorators/SimpleCommand.js.map +0 -1
- package/dist/decorators/Stoat.d.ts +0 -30
- package/dist/decorators/Stoat.d.ts.map +0 -1
- package/dist/decorators/Stoat.js +0 -39
- package/dist/decorators/Stoat.js.map +0 -1
- package/dist/decorators/index.d.ts +0 -9
- package/dist/decorators/index.d.ts.map +0 -1
- package/dist/decorators/index.js +0 -10
- package/dist/decorators/index.js.map +0 -1
- package/dist/decorators/keys.d.ts +0 -10
- package/dist/decorators/keys.d.ts.map +0 -1
- package/dist/decorators/keys.js +0 -10
- package/dist/decorators/keys.js.map +0 -1
- package/dist/decorators/store.d.ts +0 -46
- package/dist/decorators/store.d.ts.map +0 -1
- package/dist/decorators/store.js +0 -70
- package/dist/decorators/store.js.map +0 -1
- package/dist/decorators/utils.d.ts +0 -6
- package/dist/decorators/utils.d.ts.map +0 -1
- package/dist/decorators/utils.js +0 -16
- package/dist/decorators/utils.js.map +0 -1
- package/dist/decorators.d.ts +0 -9
- package/dist/decorators.d.ts.map +0 -1
- package/dist/decorators.js +0 -21
- package/dist/decorators.js.map +0 -1
- package/dist/handler.d.ts +0 -145
- package/dist/handler.d.ts.map +0 -1
- package/dist/handler.js +0 -355
- package/dist/handler.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/registry.d.ts +0 -125
- package/dist/registry.d.ts.map +0 -1
- package/dist/registry.js +0 -279
- package/dist/registry.js.map +0 -1
- package/dist/types.d.ts +0 -111
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
package/dist/registry.js
DELETED
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
import * as path from "node:path";
|
|
2
|
-
import * as fs from "node:fs/promises";
|
|
3
|
-
import { pathToFileURL } from "node:url";
|
|
4
|
-
import { glob } from "tinyglobby";
|
|
5
|
-
import { buildSimpleCommandMetadata, getSimpleCommands, getEventsMetadata } from "./decorators";
|
|
6
|
-
import { decoratorStore } from "./decorators/store";
|
|
7
|
-
/**
|
|
8
|
-
* CommandRegistry - Scans directories and stores commands in a Map
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* const registry = new CommandRegistry();
|
|
13
|
-
* await registry.loadFromDirectory('./src/commands');
|
|
14
|
-
*
|
|
15
|
-
* const ping = registry.get('ping');
|
|
16
|
-
* const allCommands = registry.getAll();
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
export class CommandRegistry {
|
|
20
|
-
static DEFAULT_AUTO_DISCOVERY_IGNORES = [
|
|
21
|
-
"**/node_modules/**",
|
|
22
|
-
"**/.git/**",
|
|
23
|
-
"**/*.d.ts",
|
|
24
|
-
"**/*.test.*",
|
|
25
|
-
"**/*.spec.*",
|
|
26
|
-
];
|
|
27
|
-
commands = new Map();
|
|
28
|
-
aliases = new Map();
|
|
29
|
-
registeredEvents = [];
|
|
30
|
-
extensions;
|
|
31
|
-
processedStoatClasses = new Set();
|
|
32
|
-
constructor(extensions = [".js", ".mjs", ".cjs"]) {
|
|
33
|
-
this.extensions = extensions;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Get the number of registered commands
|
|
37
|
-
*/
|
|
38
|
-
get size() {
|
|
39
|
-
return this.commands.size;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Load commands from a directory using glob pattern matching
|
|
43
|
-
*/
|
|
44
|
-
async loadFromDirectory(directory) {
|
|
45
|
-
const patterns = this.extensions.map((ext) => path.join(directory, "**", `*${ext}`).replace(/\\/g, "/"));
|
|
46
|
-
for (const pattern of patterns) {
|
|
47
|
-
const files = await glob(pattern, {
|
|
48
|
-
ignore: ["**/*.d.ts", "**/*.test.ts", "**/*.spec.ts"],
|
|
49
|
-
absolute: true,
|
|
50
|
-
});
|
|
51
|
-
for (const file of files) {
|
|
52
|
-
await this.loadFile(file, directory);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
console.log(`[Stoatx] Loaded ${this.commands.size} command(s) and ${this.registeredEvents.length} event(s)`);
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Auto-discover command files across one or more roots.
|
|
59
|
-
*/
|
|
60
|
-
async autoDiscover(options = {}) {
|
|
61
|
-
const roots = options.roots?.length ? options.roots : [process.cwd()];
|
|
62
|
-
const includePatterns = options.include?.length ? options.include : this.getDefaultAutoDiscoveryPatterns();
|
|
63
|
-
const patterns = roots.flatMap((root) => includePatterns.map((pattern) => path.join(root, pattern).replace(/\\/g, "/")));
|
|
64
|
-
const files = await glob(patterns, {
|
|
65
|
-
ignore: [...CommandRegistry.DEFAULT_AUTO_DISCOVERY_IGNORES, ...(options.ignore ?? [])],
|
|
66
|
-
absolute: true,
|
|
67
|
-
});
|
|
68
|
-
const uniqueFiles = [...new Set(files)];
|
|
69
|
-
let candidateFiles = 0;
|
|
70
|
-
for (const file of uniqueFiles) {
|
|
71
|
-
if (!(await this.isLikelyCommandModule(file))) {
|
|
72
|
-
continue;
|
|
73
|
-
}
|
|
74
|
-
candidateFiles++;
|
|
75
|
-
const baseDir = roots.find((root) => {
|
|
76
|
-
const relative = path.relative(root, file);
|
|
77
|
-
return relative && !relative.startsWith("..") && !path.isAbsolute(relative);
|
|
78
|
-
}) ?? roots[0];
|
|
79
|
-
await this.loadFile(file, baseDir);
|
|
80
|
-
}
|
|
81
|
-
console.log(`[Stoatx] Loaded ${this.commands.size} command(s) and ${this.registeredEvents.length} event(s)`);
|
|
82
|
-
}
|
|
83
|
-
getDefaultAutoDiscoveryPatterns() {
|
|
84
|
-
// discordx-like default: scan broadly, then register only decorated classes
|
|
85
|
-
return this.extensions.map((ext) => `**/*${ext}`);
|
|
86
|
-
}
|
|
87
|
-
async isLikelyCommandModule(filePath) {
|
|
88
|
-
try {
|
|
89
|
-
const source = await fs.readFile(filePath, "utf8");
|
|
90
|
-
return (source.includes("Stoat") ||
|
|
91
|
-
source.includes("SimpleCommand") ||
|
|
92
|
-
source.includes("Command") ||
|
|
93
|
-
source.includes("stoatx:command"));
|
|
94
|
-
}
|
|
95
|
-
catch {
|
|
96
|
-
// If the file can't be pre-read, fall back to attempting import.
|
|
97
|
-
return true;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Register a command instance
|
|
102
|
-
*/
|
|
103
|
-
register(instance, metadata, classConstructor, methodName) {
|
|
104
|
-
const name = metadata.name.toLowerCase();
|
|
105
|
-
if (this.commands.has(name)) {
|
|
106
|
-
console.warn(`[Stoatx] Duplicate command name: ${name}. Skipping...`);
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
this.validateGuards(classConstructor, metadata.name);
|
|
110
|
-
this.commands.set(name, { instance, metadata, methodName, classConstructor });
|
|
111
|
-
for (const alias of metadata.aliases) {
|
|
112
|
-
const aliasLower = alias.toLowerCase();
|
|
113
|
-
if (this.aliases.has(aliasLower) || this.commands.has(aliasLower)) {
|
|
114
|
-
console.warn(`[Stoatx] Duplicate alias: ${aliasLower}. Skipping...`);
|
|
115
|
-
continue;
|
|
116
|
-
}
|
|
117
|
-
this.aliases.set(aliasLower, name);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* Get a command by name or alias
|
|
122
|
-
*/
|
|
123
|
-
get(name) {
|
|
124
|
-
const lowerName = name.toLowerCase();
|
|
125
|
-
const resolvedName = this.aliases.get(lowerName) ?? lowerName;
|
|
126
|
-
return this.commands.get(resolvedName);
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Check if a command exists
|
|
130
|
-
*/
|
|
131
|
-
has(name) {
|
|
132
|
-
const lowerName = name.toLowerCase();
|
|
133
|
-
return this.commands.has(lowerName) || this.aliases.has(lowerName);
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* Get all registered commands
|
|
137
|
-
*/
|
|
138
|
-
getAll() {
|
|
139
|
-
return Array.from(this.commands.values());
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Get all command metadata
|
|
143
|
-
*/
|
|
144
|
-
getAllMetadata() {
|
|
145
|
-
return this.getAll().map((c) => c.metadata);
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Get all registered events
|
|
149
|
-
*/
|
|
150
|
-
getEvents() {
|
|
151
|
-
return this.registeredEvents;
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* Get commands grouped by category
|
|
155
|
-
*/
|
|
156
|
-
getByCategory() {
|
|
157
|
-
const categories = new Map();
|
|
158
|
-
for (const cmd of this.commands.values()) {
|
|
159
|
-
const category = cmd.metadata.category;
|
|
160
|
-
const existing = categories.get(category) ?? [];
|
|
161
|
-
existing.push(cmd);
|
|
162
|
-
categories.set(category, existing);
|
|
163
|
-
}
|
|
164
|
-
return categories;
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* Clear all commands
|
|
168
|
-
*/
|
|
169
|
-
clear() {
|
|
170
|
-
this.commands.clear();
|
|
171
|
-
this.aliases.clear();
|
|
172
|
-
this.registeredEvents.length = 0;
|
|
173
|
-
this.processedStoatClasses.clear();
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* Iterate over commands
|
|
177
|
-
*/
|
|
178
|
-
[Symbol.iterator]() {
|
|
179
|
-
return this.commands.entries();
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* Iterate over command values
|
|
183
|
-
*/
|
|
184
|
-
values() {
|
|
185
|
-
return this.commands.values();
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* Iterate over command names
|
|
189
|
-
*/
|
|
190
|
-
keys() {
|
|
191
|
-
return this.commands.keys();
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* Validate that all guards on a command implement the required methods
|
|
195
|
-
* @param commandClass
|
|
196
|
-
* @param commandName
|
|
197
|
-
* @private
|
|
198
|
-
*/
|
|
199
|
-
validateGuards(commandClass, commandName) {
|
|
200
|
-
const guards = Reflect.getMetadata("stoatx:command:guards", commandClass) || [];
|
|
201
|
-
for (const GuardClass of guards) {
|
|
202
|
-
const guardInstance = new GuardClass();
|
|
203
|
-
if (typeof guardInstance.run !== "function") {
|
|
204
|
-
console.error(`[Stoatx] FATAL: Guard "${GuardClass.name}" on command "${commandName}" does not have a run() method.`);
|
|
205
|
-
process.exit(1);
|
|
206
|
-
}
|
|
207
|
-
if (typeof guardInstance.guardFail !== "function") {
|
|
208
|
-
console.error(`[Stoatx] FATAL: Guard "${GuardClass.name}" on command "${commandName}" does not have a guardFail() method.`);
|
|
209
|
-
console.error(`[Stoatx] All guards must implement guardFail() to handle failed checks.`);
|
|
210
|
-
process.exit(1);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* Load commands from a single file
|
|
216
|
-
*/
|
|
217
|
-
async loadFile(filePath, baseDir) {
|
|
218
|
-
try {
|
|
219
|
-
const knownStoatClasses = new Set(decoratorStore.getStoatClasses().keys());
|
|
220
|
-
const fileUrl = pathToFileURL(filePath).href;
|
|
221
|
-
await import(fileUrl);
|
|
222
|
-
const allStoatClasses = decoratorStore.getStoatClasses();
|
|
223
|
-
for (const [stoatClass, stoatInstance] of allStoatClasses.entries()) {
|
|
224
|
-
if (knownStoatClasses.has(stoatClass) || this.processedStoatClasses.has(stoatClass)) {
|
|
225
|
-
continue;
|
|
226
|
-
}
|
|
227
|
-
this.registerStoatClassCommands(stoatClass, stoatInstance, filePath, baseDir);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
catch (error) {
|
|
231
|
-
console.error(`[Stoatx] Failed to load command file: ${filePath}`, error);
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
registerStoatClassCommands(stoatClass, instance, filePath, baseDir) {
|
|
235
|
-
const simpleCommands = getSimpleCommands(stoatClass);
|
|
236
|
-
const events = getEventsMetadata(stoatClass);
|
|
237
|
-
const category = this.getCategoryFromPath(filePath, baseDir);
|
|
238
|
-
if (simpleCommands.length === 0 && events.length === 0) {
|
|
239
|
-
console.warn(`[Stoatx] Class ${stoatClass.name} is decorated with @Stoat but has no @SimpleCommand, @On or @Once methods. Skipping...`);
|
|
240
|
-
this.processedStoatClasses.add(stoatClass);
|
|
241
|
-
return;
|
|
242
|
-
}
|
|
243
|
-
for (const cmdDef of simpleCommands) {
|
|
244
|
-
const method = instance[cmdDef.methodName];
|
|
245
|
-
if (typeof method !== "function") {
|
|
246
|
-
console.warn(`[Stoatx] Method ${cmdDef.methodName} not found on ${stoatClass.name}. Skipping...`);
|
|
247
|
-
continue;
|
|
248
|
-
}
|
|
249
|
-
const metadata = buildSimpleCommandMetadata(cmdDef.options, cmdDef.methodName, category);
|
|
250
|
-
this.register(instance, metadata, stoatClass, cmdDef.methodName);
|
|
251
|
-
}
|
|
252
|
-
for (const eventDef of events) {
|
|
253
|
-
const method = instance[eventDef.methodName];
|
|
254
|
-
if (typeof method !== "function") {
|
|
255
|
-
console.warn(`[Stoatx] Method ${eventDef.methodName} not found on ${stoatClass.name}. Skipping...`);
|
|
256
|
-
continue;
|
|
257
|
-
}
|
|
258
|
-
this.registeredEvents.push({
|
|
259
|
-
instance,
|
|
260
|
-
methodName: eventDef.methodName,
|
|
261
|
-
event: eventDef.event,
|
|
262
|
-
type: eventDef.type,
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
this.processedStoatClasses.add(stoatClass);
|
|
266
|
-
}
|
|
267
|
-
/**
|
|
268
|
-
* Derive category from file path relative to base directory
|
|
269
|
-
*/
|
|
270
|
-
getCategoryFromPath(filePath, baseDir) {
|
|
271
|
-
const relative = path.relative(baseDir, filePath);
|
|
272
|
-
const parts = relative.split(path.sep);
|
|
273
|
-
if (parts.length > 1) {
|
|
274
|
-
return parts[0];
|
|
275
|
-
}
|
|
276
|
-
return undefined;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
//# sourceMappingURL=registry.js.map
|
package/dist/registry.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAChG,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAiCpD;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,eAAe;IAClB,MAAM,CAAU,8BAA8B,GAAG;QACvD,oBAAoB;QACpB,YAAY;QACZ,WAAW;QACX,aAAa;QACb,aAAa;KACd,CAAC;IAEe,QAAQ,GAAmC,IAAI,GAAG,EAAE,CAAC;IACrD,OAAO,GAAwB,IAAI,GAAG,EAAE,CAAC;IACzC,gBAAgB,GAAsB,EAAE,CAAC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AQ,IAAI,MAAM,EAAE,CAAC;YAC9B,MAAM,MAAM,GAAI,QAAgB,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;YACtD,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE,CAAC;gBACjC,OAAO,CAAC,IAAI,CAAC,mBAAmB,QAAQ,CAAC,UAAU,iBAAiB,UAAU,CAAC,IAAI,eAAe,CAAC,CAAC;gBACpG,SAAS;YACX,CAAC;YAED,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC;gBACzB,QAAQ;gBACR,UAAU,EAAE,QAAQ,CAAC,UAAU;gBAC/B,KAAK,EAAE,QAAQ,CAAC,KAAK;gBACrB,IAAI,EAAE,QAAQ,CAAC,IAAI;aACpB,CAAC,CAAC;QACL,CAAC;QAED,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAC7C,CAAC;IAED;;OAEG;IACK,mBAAmB,CAAC,QAAgB,EAAE,OAAe;QAC3D,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAClD,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAEvC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACrB,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC"}
|
package/dist/types.d.ts
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { Client as StoatClient, Message } from "stoat.js";
|
|
2
|
-
/**
|
|
3
|
-
* Permission types for commands
|
|
4
|
-
*/
|
|
5
|
-
export type Permission = "SendMessages" | "ManageMessages" | "ManageChannels" | "ManageServer" | "KickMembers" | "BanMembers" | "Administrator" | (string & {});
|
|
6
|
-
/**
|
|
7
|
-
* Simple command options passed to @SimpleCommand decorator
|
|
8
|
-
* Used with @Stoat() decorated classes for method-based commands
|
|
9
|
-
*/
|
|
10
|
-
export interface SimpleCommandOptions {
|
|
11
|
-
/** Command name (defaults to method name) */
|
|
12
|
-
name?: string;
|
|
13
|
-
/** Command description */
|
|
14
|
-
description?: string;
|
|
15
|
-
/** Command aliases */
|
|
16
|
-
aliases?: string[];
|
|
17
|
-
/** Required permissions to run the command */
|
|
18
|
-
permissions?: Permission[];
|
|
19
|
-
/** Command category (auto-detected from directory if not provided) */
|
|
20
|
-
category?: string;
|
|
21
|
-
/** Cooldown in milliseconds */
|
|
22
|
-
cooldown?: number;
|
|
23
|
-
/** Whether the command is NSFW only */
|
|
24
|
-
nsfw?: boolean;
|
|
25
|
-
/** Whether the command is owner only */
|
|
26
|
-
ownerOnly?: boolean;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Resolved command metadata with required fields
|
|
30
|
-
*/
|
|
31
|
-
export interface CommandMetadata {
|
|
32
|
-
name: string;
|
|
33
|
-
description: string;
|
|
34
|
-
aliases: string[];
|
|
35
|
-
permissions: Permission[];
|
|
36
|
-
category: string;
|
|
37
|
-
cooldown: number;
|
|
38
|
-
nsfw: boolean;
|
|
39
|
-
ownerOnly: boolean;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Command execution context
|
|
43
|
-
*/
|
|
44
|
-
export interface CommandContext {
|
|
45
|
-
/** The client instance */
|
|
46
|
-
client: StoatClient;
|
|
47
|
-
/** The raw message content */
|
|
48
|
-
content: string;
|
|
49
|
-
/** The author ID */
|
|
50
|
-
authorId: string;
|
|
51
|
-
/** The channel ID */
|
|
52
|
-
channelId: string;
|
|
53
|
-
/** The server/guild ID (if applicable) */
|
|
54
|
-
serverId?: string;
|
|
55
|
-
/** Parsed command arguments */
|
|
56
|
-
args: string[];
|
|
57
|
-
/** The prefix used */
|
|
58
|
-
prefix: string;
|
|
59
|
-
/** The command name used (could be an alias) */
|
|
60
|
-
commandName: string;
|
|
61
|
-
/** Reply to the message */
|
|
62
|
-
reply: (content: string) => Promise<Message>;
|
|
63
|
-
/** The original message object (platform-specific) */
|
|
64
|
-
message: Message;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Optional lifecycle hooks for @Stoat() class instances
|
|
68
|
-
*/
|
|
69
|
-
export interface StoatLifecycle {
|
|
70
|
-
/** Optional: Called when an error occurs during command execution */
|
|
71
|
-
onError?(ctx: CommandContext, error: Error): Promise<void>;
|
|
72
|
-
/** Optional: Called when a cooldown is active */
|
|
73
|
-
onCooldown?(ctx: CommandContext, remaining: number): Promise<void>;
|
|
74
|
-
}
|
|
75
|
-
export interface StoatxGuard {
|
|
76
|
-
run(ctx: CommandContext): Promise<boolean> | boolean;
|
|
77
|
-
guardFail?(ctx: CommandContext): Promise<void> | void;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Discovery options for automatic command module loading
|
|
81
|
-
*/
|
|
82
|
-
export interface StoatxDiscoveryOptions {
|
|
83
|
-
/** Root directories to scan (default: [process.cwd()]) */
|
|
84
|
-
roots?: string[];
|
|
85
|
-
/** Glob patterns relative to each root */
|
|
86
|
-
include?: string[];
|
|
87
|
-
/** Additional ignore patterns */
|
|
88
|
-
ignore?: string[];
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Handler options
|
|
92
|
-
*/
|
|
93
|
-
export interface StoatxHandlerOptions {
|
|
94
|
-
/** The client instance */
|
|
95
|
-
client: StoatClient;
|
|
96
|
-
/** Directory to scan for command modules (absolute path) */
|
|
97
|
-
commandsDir?: string;
|
|
98
|
-
/** Auto-discovery options used when commandsDir is not provided */
|
|
99
|
-
discovery?: StoatxDiscoveryOptions;
|
|
100
|
-
/** Command prefix or prefix resolver function */
|
|
101
|
-
prefix: string | ((ctx: {
|
|
102
|
-
serverId?: string;
|
|
103
|
-
}) => string | Promise<string>);
|
|
104
|
-
/** Owner IDs for owner-only commands */
|
|
105
|
-
owners?: string[];
|
|
106
|
-
/** File extensions to load (default: ['.js', '.mjs', '.cjs']) */
|
|
107
|
-
extensions?: string[];
|
|
108
|
-
/** Disable mention prefix support (default: false) */
|
|
109
|
-
disableMentionPrefix?: boolean;
|
|
110
|
-
}
|
|
111
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,UAAU,GAClB,cAAc,GACd,gBAAgB,GAChB,gBAAgB,GAChB,cAAc,GACd,aAAa,GACb,YAAY,GACZ,eAAe,GACf,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0BAA0B;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sBAAsB;IACtB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,sEAAsE;IACtE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uCAAuC;IACvC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,wCAAwC;IACxC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,E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MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,0BAA0B;IAC1B,MAAM,EAAE,WAAW,CAAC;IACpB,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mEAAmE;IACnE,SAAS,CAAC,EAAE,sBAAsB,CAAC;IACnC,iDAAiD;IACjD,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5E,wCAAwC;IACxC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,iEAAiE;IACjE,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,sDAAsD;IACtD,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC"}
|
package/dist/types.js
DELETED
package/dist/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|