mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-07 21:53:07 -04:00
improve startup logging
This commit is contained in:
parent
8ceba51a30
commit
934f6ec09f
1 changed files with 19 additions and 8 deletions
|
@ -241,14 +241,25 @@ interactionClient.on('commandRunError', async ({context, error}) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
try{
|
try{
|
||||||
await cluster.run();
|
// TODO: This should in theory already be done by detritus, figure out why it isn't
|
||||||
|
await cluster.run().then();
|
||||||
|
|
||||||
|
console.log(`[${process.env.HOSTNAME || "labscore"}]{${cluster.clusterId}} cluster ran`)
|
||||||
|
let shards = `{${cluster.clusterId}} (${cluster.shards.map((shard) => shard.shardId).join(', ') })`;
|
||||||
|
console.log(`[${process.env.HOSTNAME || "labscore"}]${shards} shards loaded`)
|
||||||
|
|
||||||
|
{
|
||||||
await commandClient.addMultipleIn('../commands/message/');
|
await commandClient.addMultipleIn('../commands/message/');
|
||||||
await commandClient.run()
|
await commandClient.run()
|
||||||
|
console.log(`[${process.env.HOSTNAME || "labscore"}]${shards} command client ready`)
|
||||||
|
}
|
||||||
|
{
|
||||||
await interactionClient.addMultipleIn('../commands/interaction/context');
|
await interactionClient.addMultipleIn('../commands/interaction/context');
|
||||||
await interactionClient.addMultipleIn('../commands/interaction/user');
|
await interactionClient.addMultipleIn('../commands/interaction/user');
|
||||||
await interactionClient.addMultipleIn('../commands/interaction/slash');
|
await interactionClient.addMultipleIn('../commands/interaction/slash');
|
||||||
await interactionClient.run();
|
await interactionClient.run();
|
||||||
|
console.log(`[${process.env.HOSTNAME || "labscore"}]${shards} interaction command client ready`)
|
||||||
|
}
|
||||||
} catch(e){
|
} catch(e){
|
||||||
console.log(e)
|
console.log(e)
|
||||||
console.log(e.errors)
|
console.log(e.errors)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue