From a3b617233a2d4a46d33e30e886d7295b0fa784a9 Mon Sep 17 00:00:00 2001 From: Essem Date: Mon, 13 Sep 2021 12:54:27 -0500 Subject: [PATCH] Fixed docker-compose help doc output, added start/finish logs to command/event loading --- docker-compose.yml | 2 +- shard.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index fd4d029..8a74327 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,7 +14,7 @@ services: env_file: - .env environment: - OUTPUT: /home/esmBot/help + OUTPUT: /home/esmBot/help/help.md TEMPDIR: /home/esmBot/temp links: - lavalink diff --git a/shard.js b/shard.js index 60e89b0..448519d 100644 --- a/shard.js +++ b/shard.js @@ -41,6 +41,7 @@ class Shard extends BaseClusterWorker { error(`Failed to register command from ${commandFile}: ${e}`); } } + log("info", "Finished loading commands."); // register events const events = await readdir("./events/"); @@ -51,6 +52,7 @@ class Shard extends BaseClusterWorker { const { default: event } = await import(`./events/${file}`); this.bot.on(eventName, event.bind(null, this.bot, this.clusterID, this.workerID, this.ipc)); } + log("info", "Finished loading events."); // generate docs if (process.env.OUTPUT !== "") {