lots of changes

This commit is contained in:
NoLogicAlan committed 2026-05-16 20:30:56 +03:00
1 parent ba225c914a
commit 6fa8f3b540
20 files changed
+296 -144

No files matched your search

+14 -8
View File
@@ -152,9 +152,10 @@ export async function run(msg, data) {
// Batch keywords
if (target === "commands") {
const results = await Promise.all(
this.handler.commands.map(c => reloadCommand(this, msg, c.name))
);
const results = [];
for (const c of [...this.handler.commands]) {
results.push(await reloadCommand(this, msg, c.name));
}
return showResults(msg, results, "Commands");
}
@@ -173,11 +174,16 @@ export async function run(msg, data) {
}
if (target === "all") {
const results = await Promise.all([
...this.handler.commands.map(c => reloadCommand(this, msg, c.name)),
...allModuleFiles("src").map(m => reloadModule(this, msg, m.file, m.label)),
...allModuleFiles("audio").map(m => reloadModule(this, msg, m.file, m.label)),
]);
const results = [];
for (const c of [...this.handler.commands]) {
results.push(await reloadCommand(this, msg, c.name));
}
for (const m of allModuleFiles("src")) {
results.push(await reloadModule(this, msg, m.file, m.label));
}
for (const m of allModuleFiles("audio")) {
results.push(await reloadModule(this, msg, m.file, m.label));
}
return showResults(msg, results, "Everything");
}