feat: Added options for load testing to automatically play music in specified channels

This commit is contained in:
Marius Begby committed 2023-07-25 13:17:52 +02:00
1 parent 771429b595
commit 8e04d59a6a
5 files changed
+50 -3

No files matched your search

+6 -1
View File
@@ -1,6 +1,7 @@
const logger = require('../../services/logger');
const { embedOptions, systemOptions, presenceStatusOptions } = require('../../config');
const { embedOptions, systemOptions, presenceStatusOptions, loadTestOptions } = require('../../config');
const { postBotStats } = require('../../utils/other/postBotStats.js');
const { startLoadTest } = require('../../utils/other/startLoadTest');
const { Events, EmbedBuilder } = require('discord.js');
module.exports = {
@@ -12,6 +13,10 @@ module.exports = {
await client.user.setPresence(presenceStatusOptions);
await client.user.setPresence(presenceStatusOptions);
if (loadTestOptions.enabled) {
await startLoadTest(client);
}
const channel = await client.channels.cache.get(systemOptions.systemMessageChannelId);
// Check if the channel exists in curent shard and send a message