From 19babd28f17c0175b8dd694ace8de8e1d8d55cc5 Mon Sep 17 00:00:00 2001 From: Raphael Date: Sun, 26 Oct 2025 22:29:47 +0100 Subject: [PATCH] feat(lib/log): changing the wrap of the log to include the indent parameter --- src/index.ts | 5 ++--- src/lib/log.ts | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/index.ts b/src/index.ts index 0352c40..a92ea3b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -40,7 +40,7 @@ for (const folder of commandFolders) { if ('data' in command && 'execute' in command) { client.commands.set(command.data.name, command); commands.push(command.data.toJSON()); - log.list(command.data.name); + log.list(1, command.data.name); } } catch (err) { @@ -71,7 +71,7 @@ for (const folder of eventFolders) { else { client.on(event.name, (...args) => event.execute(...args)); } - log.list(event.name); + log.list(1, event.name); } } catch (err) { @@ -80,7 +80,6 @@ for (const folder of eventFolders) { } } console.log('\n\n'); - try { const rest = new REST().setToken(process.env.DSC_TOKEN!); const data = await rest.put( diff --git a/src/lib/log.ts b/src/lib/log.ts index 760c078..25ace1f 100644 --- a/src/lib/log.ts +++ b/src/lib/log.ts @@ -19,7 +19,7 @@ export const log = { search: (name: string) => { console.log(chalk.blueBright(`🔍 | Searching for ${name}`)); }, - list: (name: string) => { - console.log(chalk.cyanBright(`\t✅ | ${name}`)); + list: (indentation: number, name: string) => { + console.log(chalk.cyanBright(`${'\t'.repeat(indentation)}✅ | ${name}`)); }, };