From 45c06c859e26b8ca68fdf999a9df56687ff39b79 Mon Sep 17 00:00:00 2001 From: *x1 Date: Thu, 20 Jun 2024 17:27:15 +0200 Subject: [PATCH] Add logger 2 --- main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.js b/main.js index e0047c7..644215c 100644 --- a/main.js +++ b/main.js @@ -4,6 +4,8 @@ const loadCommands = require("./fonctions/loadCommands"); const loadEvents = require("./fonctions/loadEvents"); const client = new Client({intents: new IntentsBitField(3276799)}); const color = require('colors') +var loggT = require('./loggerT.js'); +var loggE = require('./loggerE.js'); client.events = new Collection(); client.commands = new Collection(); @@ -11,5 +13,7 @@ client.config = require("./config.json"); console.log(`${loadEvents(client, '..\\events')} events loaded`.grey); console.log(`${loadCommands(client, '..\\commands')} commands loaded`.grey); +loggT(`${loadEvents(client, '..\\events')} events loaded`) +loggT(`${loadCommands(client, '..\\commands')} commands loaded`) client.login(process.env.TOKEN); \ No newline at end of file