From 33e1cf463f73e8ae3daec8ec73fab3c1139377d9 Mon Sep 17 00:00:00 2001 From: Laxuzer <64734729+Laxuzer@users.noreply.github.com> Date: Wed, 24 Nov 2021 19:08:24 +0300 Subject: [PATCH] logger hata --- src/handlers/handler.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/handlers/handler.js b/src/handlers/handler.js index b5514e0..5c64cd6 100644 --- a/src/handlers/handler.js +++ b/src/handlers/handler.js @@ -10,7 +10,7 @@ module.exports = class MainHandler { async init() { require('./manual/functionHandler')(this.client); const handlers = await readdirSync('./src/handlers/auto'); - this.client.logger.templates.Log('Handler', `Loading a total of ${handlers.length} handlers.`, { TitleColor: 'cyan' }); + this.client.logger.log('Handler', `Loading a total of ${handlers.length} handlers.`, { TitleColor: 'cyan' }); for (const handler of handlers) { const checkCommandLoaded = require.cache[require.resolve(`./auto/${handler}`)]; if (checkCommandLoaded?.loaded) delete require.cache[require.resolve(`./auto/${handler}`)]; @@ -18,8 +18,8 @@ module.exports = class MainHandler { const Handler = new Event(this.client); if (!Handler.enabled) return; Handler.run(this.client); - this.client.logger.templates.Log('Handler', `Loading Handler: ${Handler.name}. 👌`, { TitleColor: 'cyan' }); + this.client.logger.log('Handler', `Loading Handler: ${Handler.name}. 👌`, { TitleColor: 'cyan' }); delete require.cache[require.resolve(`./auto/${handler}`)]; } } -}; \ No newline at end of file +};