Fixed docker-compose help doc output, added start/finish logs to command/event loading
This commit is contained in:
parent
fec3d7303c
commit
a3b617233a
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
2
shard.js
2
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 !== "") {
|
||||
|
|
Loading…
Reference in a new issue