mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 22:15:37 +00:00
feat: Added options for load testing to automatically play music in specified channels
This commit is contained in:
1 parent
771429b595
commit
8e04d59a6a
5 files changed
+50
-3
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user