From 207b16e1cd29f26a044bfe7bbe52b561a8c2db8e Mon Sep 17 00:00:00 2001 From: neru Date: Sat, 10 Jan 2026 12:05:24 -0300 Subject: [PATCH] style: run format:apply --- src/commands.ts | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/src/commands.ts b/src/commands.ts index 573396a..7cfc9d9 100644 --- a/src/commands.ts +++ b/src/commands.ts @@ -18,6 +18,7 @@ import { import { Logger } from './utils/log'; import { config } from './utils/config'; import { Bot } from './bot'; +import { isModule } from './utils/misc'; export interface Command { name?: string; @@ -51,8 +52,8 @@ export class CommandManager { private categories: Array = []; /* - public - */ + public + */ public constructor(cmdFolder: string) { this.folderPath = path.resolve(__dirname, cmdFolder); this.log = new Logger('Command manager'); @@ -95,8 +96,8 @@ export class CommandManager { } /* - internal - */ + internal + */ private async populateCommands() { if (!fs.existsSync(this.folderPath)) throw new Error(`Command directory not found: ${this.folderPath}`); @@ -176,8 +177,8 @@ export class CommandManager { } /* - cmd parsing - */ + cmd parsing + */ private async attemptLoadCommand(filePath: string): Promise { try { const module = await import(`file://${filePath}`); @@ -193,8 +194,8 @@ export class CommandManager { } /* - misc functions - */ + misc functions + */ private async registerSlashCommands(): Promise { this.log.info('Registering slash commands...'); @@ -219,8 +220,8 @@ export class CommandManager { } /* - interaction handling - */ + interaction handling + */ private async executeCommandInteraction( interaction: ChatInputCommandInteraction ): Promise { @@ -295,12 +296,12 @@ export class CommandManager { } /* - event listeners - */ + event listeners + */ private async onInteraction(interaction: BaseInteraction): Promise { /* - cmd execution - */ + cmd execution + */ if (interaction.isChatInputCommand()) return this.executeCommandInteraction(interaction);