diff --git a/src/events/ready.ts b/src/events/ready.ts index 5888324..5577912 100644 --- a/src/events/ready.ts +++ b/src/events/ready.ts @@ -14,6 +14,7 @@ export const ready: event = { async execute(client: Client) { logger.info(`Ready! Logged in as ${client.user?.tag}`); const secondaries = await db.secondary.findMany(); + logger.time("refreshchannels"); Promise.all( secondaries.map(async (secondary) => { // const cachedChannel = client.channels.cache.get(secondary.id); @@ -34,7 +35,7 @@ export const ready: event = { }) ) .catch((error) => logger.error(error)) - .then(() => logger.debug("Channels Restored")); + .then(() => logger.timeEnd("refreshchannels")); updateActivityCount(client); }, };