mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
lots of changes
This commit is contained in:
1 parent
ba225c914a
commit
6fa8f3b540
20 files changed
+296
-144
No files matched your search
+14
-8
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user