From c79b611821d2009b70e23b773f854aac51e12b8b Mon Sep 17 00:00:00 2001 From: GamesTwoLifeTwoLife Date: Fri, 15 Dec 2023 18:09:01 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B2=D0=B8=D0=B4=D0=B0=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20const=20eventCategory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handlers/Event.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/handlers/Event.js b/handlers/Event.js index dc782b8..899d03d 100644 --- a/handlers/Event.js +++ b/handlers/Event.js @@ -18,10 +18,9 @@ module.exports = (client) => { const event = require(eventPath); const eventHandler = event.once ? client.once : (restEvents.includes(event.name) ? client.rest.on : client.on); - const eventCategory = event.once ? folder : (restEvents.includes(event.name) ? folder : folder); eventHandler.call(client, event.name, (...args) => event.execute(...args)); - console.log(`[EventHandler][${eventCategory}] Подія ${event.name} (${file}) завантажена`); + console.log(`[EventHandler][${folder}] Подія ${event.name} (${file}) завантажена`); } catch (error) { console.error(`[EventHandler] Помилка завантаження події з файлу ${file}: ${error.message}`); }