mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 22:05:10 +00:00
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:
parent
59d09432d3
commit
8ee670a776
1 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue