fix/alarm queue ping

This commit is contained in:
SowinskiBraeden committed 2023-09-24 19:00:19 -07:00
1 parent f83a932ac1
commit a5a760e29f
2 files changed
+5 -4

No files matched your search

+4 -3
View File
@@ -156,10 +156,11 @@ class DayzRBot extends Client {
if (lines[i].includes('killed by Player') && !lines[i - 1].includes('hit by Player')) s = await HandleKillfeed(this, guildId, s, lines[i]); // Handles deaths missing hit by log
}
for (const [channel_id, role] of Object.entries(this.alarmPingQueue)) {
for (const [channel_id, data] of Object.entries(this.alarmPingQueue)) {
const channel = this.GetChannel(channel_id);
channel.send({ content: `<@&${role}>`, embeds: this.alarmPingQueue[channel_id][role] });
for (const [role, embeds] of Object.entries(data)) {
channel.send({ content: `<@&${role}>`, embeds: embeds });
}
}
this.alarmPingQueue = {};