Updated log function

This commit is contained in:
2025-06-01 20:30:58 +02:00
parent dd12b86092
commit d165ad15c2
19 changed files with 90 additions and 65 deletions

View File

@@ -24,16 +24,16 @@ for (const file of contentMenuCommands) {
}
const [error] = await tryCatch(updateCommands())
if (error) log(error, "error")
if (error) log.error(error)
async function updateCommands() {
log(`Started refreshing ${commands.length} application (/) commands.`, "info")
log.info(`Started refreshing ${commands.length} application (/) commands.`)
await rest.put(
Routes.applicationGuildCommands(env.dev.DEVID, env.dev.GUILDID),
{ body: commands }
).then(() => {
log(`Successfully reloaded ${commands.length} application (/) commands.`, "info")
log.info(`Successfully reloaded ${commands.length} application (/) commands.`)
process.exit(0)
})
}