fix: small fixes

This commit is contained in:
Marius Begby committed 2023-08-26 18:50:52 +02:00
1 parent 2a1330c9f4
commit 4b48df5393
8 files changed
+15 -13

No files matched your search

+6 -2
View File
@@ -27,8 +27,12 @@ module.exports = {
await client.user.setPresence(presenceStatusOptions);
if (loadTestOptions.enabled) {
logger.info('Initiating load test for bot client.');
await startLoadTest({ client, executionId });
// Only call function from shard with id 0
// The function uses broadcastEval() to call itself on all shards
if (client.shard.ids[0] === 0) {
logger.info('Initiating load test for bot client.');
await startLoadTest({ client, executionId });
}
}
const channel = await client.channels.cache.get(systemOptions.systemMessageChannelId);
@@ -64,6 +64,7 @@ module.exports = {
}
const inputTime = new Date();
await command.execute({ interaction, client, executionId });
const outputTime = new Date();
-2
View File
@@ -51,7 +51,5 @@ module.exports = {
});
}
}
process.env.NODE_ENV === 'development' ? logger.trace(queue, 'Queue object') : null;
}
};
-2
View File
@@ -51,7 +51,5 @@ module.exports = {
});
}
}
process.env.NODE_ENV === 'development' ? logger.trace(queue, 'Queue object') : null;
}
};
-1
View File
@@ -17,6 +17,5 @@ module.exports = {
});
logger.debug(`playerStart event: Started playing '${track.url}'.`);
process.env.NODE_ENV === 'development' ? logger.trace(queue) : null;
}
};