From 15fa1b9f3cebc1b3c6a11318b20a998f1ed732c6 Mon Sep 17 00:00:00 2001 From: Matt <7128721+TobiTenno@users.noreply.github.com> Date: Wed, 25 Sep 2024 21:13:31 -0500 Subject: [PATCH] fix(baro): game flag for baro for easy setting (#873) --- src/notifications/worldstate/Notifier.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/notifications/worldstate/Notifier.js b/src/notifications/worldstate/Notifier.js index 6a2691a3..951997c5 100644 --- a/src/notifications/worldstate/Notifier.js +++ b/src/notifications/worldstate/Notifier.js @@ -4,7 +4,7 @@ import Broadcaster from '../Broadcaster.js'; import logger from '../../utilities/Logger.js'; import { asId, embeds, getThumbnailForItem, i18ns, updating } from '../NotifierUtils.js'; import { syndicates } from '../../resources/index.js'; -import { captures, createGroupedArray, platforms } from '../../utilities/CommonFunctions.js'; +import { captures, createGroupedArray, platforms, games } from '../../utilities/CommonFunctions.js'; const updtReg = new RegExp(captures.updates, 'i'); const beats = {}; @@ -151,7 +151,7 @@ export default class Notifier { acolytes, sortie, syndicateM, - // baros, + baros, tweets, nightwave, featuredDeals, @@ -175,12 +175,12 @@ export default class Notifier { await this.#sendAcolytes(acolytes, deps); - // if (baros?.length) { - // // eslint-disable-next-line no-restricted-syntax - // for await (const baro of baros) { - // await this.#sendBaro(baro, deps); - // } - // } + if (games.includes('BARO') && baros?.length) { + // eslint-disable-next-line no-restricted-syntax + for await (const baro of baros) { + await this.#sendBaro(baro, deps); + } + } if (conclave && conclave.length > 0) { await this.#sendConclaveDailies(conclave, deps); await this.#sendConclaveWeeklies(conclave, deps);