feat!: Sharding implemented across the bot

This commit is contained in:
Marius Begby committed 2023-07-21 14:17:04 +02:00
1 parent b160cbf564
commit 9c15c636d9
29 files changed
+270 -142

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ module.exports = {
.setDMPermission(false),
execute: async ({ interaction, client }) => {
if (await notValidGuildId(interaction)) {
logger.debug(`Shard ${client.shard.ids[0]}> Not a valid guild id.`);
logger.debug(`[Shard ${client.shard.ids[0]}] Not a valid guild id.`);
return;
}
+1 -1
View File
@@ -65,7 +65,7 @@ module.exports = {
guildCount = results.reduce((acc, guildCount) => acc + guildCount, 0);
})
.catch((error) => {
logger.error(error, `Shard ${client.shard.ids[0]}> Failed to fetch client values from shards.`);
logger.error(error, `[Shard ${client.shard.ids[0]}] Failed to fetch client values from shards.`);
});
return await interaction.editReply({