From 5a1eba8b2af7c1853de34a730622a2269ce0b970 Mon Sep 17 00:00:00 2001 From: chris062689 Date: Sat, 25 Mar 2017 21:37:40 -0400 Subject: [PATCH] Added logging for loading modules and triggers. --- server.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server.js b/server.js index 472cf04..49ebc7b 100644 --- a/server.js +++ b/server.js @@ -23,6 +23,7 @@ client.on('ready', () => { require("fs").readdirSync('./commands/').forEach(function(file) { // Load the module if it's a script. if (path.extname(file) == '.js') { + logger.info(`Loaded module: ${file}`); cachedModules[file] = require(`./commands/${file}`); } }); @@ -31,6 +32,7 @@ client.on('ready', () => { require("fs").readdirSync('./triggers/').forEach(function(file) { // Load the trigger if it's a script. if (path.extname(file) == '.js') { + logger.info(`Loaded trigger: ${file}`); cachedTriggers.push(require(`./triggers/${file}`)); } });