Fixed help command not being properly generated

This commit is contained in:
TheEssem 2021-04-22 09:21:58 -05:00
parent b5253cf8e3
commit e10a277f65

View file

@ -59,11 +59,13 @@ class Shard extends Base {
logger.error(e); logger.error(e);
} }
} }
}
// generate docs // generate docs
await helpGenerator.generateList();
if (this.clusterID === 0 && helpGenerator) { if (this.clusterID === 0 && helpGenerator) {
helpGenerator.generateList().then(() => helpGenerator.createPage(process.env.OUTPUT)).then(() => logger.log("info", "The help docs have been generated.")); await helpGenerator.createPage(process.env.OUTPUT);
} logger.log("info", "The help docs have been generated.");
} }
// handle process stop // handle process stop