Skip to content

Commit

Permalink
fix(baro): game flag for baro for easy setting (#873)
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno authored Sep 26, 2024
1 parent 3569ae3 commit 15fa1b9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/notifications/worldstate/Notifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand Down Expand Up @@ -151,7 +151,7 @@ export default class Notifier {
acolytes,
sortie,
syndicateM,
// baros,
baros,
tweets,
nightwave,
featuredDeals,
Expand All @@ -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);
Expand Down

0 comments on commit 15fa1b9

Please sign in to comment.