mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 22:15:37 +00:00
fix: small fixes
This commit is contained in:
1 parent
2a1330c9f4
commit
4b48df5393
8 files changed
+15
-13
No files matched your search
@@ -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();
|
||||
|
||||
@@ -51,7 +51,5 @@ module.exports = {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
process.env.NODE_ENV === 'development' ? logger.trace(queue, 'Queue object') : null;
|
||||
}
|
||||
};
|
||||
@@ -51,7 +51,5 @@ module.exports = {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
process.env.NODE_ENV === 'development' ? logger.trace(queue, 'Queue object') : null;
|
||||
}
|
||||
};
|
||||
@@ -17,6 +17,5 @@ module.exports = {
|
||||
});
|
||||
|
||||
logger.debug(`playerStart event: Started playing '${track.url}'.`);
|
||||
process.env.NODE_ENV === 'development' ? logger.trace(queue) : null;
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user