feat(lib/log): changing the wrap of the log to include the indent parameter
This commit is contained in:
parent
5db4a7939d
commit
19babd28f1
2 changed files with 4 additions and 5 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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}`));
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue