Fixed docker-compose help doc output, added start/finish logs to command/event loading

This commit is contained in:
Essem 2021-09-13 12:54:27 -05:00
parent fec3d7303c
commit a3b617233a
No known key found for this signature in database
GPG Key ID: 7D497397CC3A2A8C
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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 !== "") {