enhancement(lint): Fix lint errors for src/modules/CommandLoader.ts

Co-authored-by: NeonGamerBot-QK <neon@saahild.com>
Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
This commit is contained in:
zeon-neon[bot] 2025-02-17 01:29:23 +00:00 committed by GitHub
parent 59d09432d3
commit 8ee670a776
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,7 +39,7 @@ export default class CommandLoader {
const stamp = Date.now();
try {
const commandClass = await import(path.join(this.dir, file));
console.log(commandClass)
console.log(commandClass);
cmds.push({ commandClass, file });
// const cmd = new commandClass.default();
// cmd.run(this._app);
@ -57,7 +57,9 @@ export default class CommandLoader {
}
for (const { commandClass, file } of cmds) {
const stamp = Date.now();
const c = commandClass.default ? new commandClass.default() : new commandClass();
const c = commandClass.default
? new commandClass.default()
: new commandClass();
console.log(`Running ${file}`);
try {
c.run(this._app);