fix/alarm queue ping
This commit is contained in:
2 files changed
+5
-4
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dayzr-bot",
|
"name": "dayzr-bot",
|
||||||
"version": "10.1.1",
|
"version": "10.1.2",
|
||||||
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
|
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"nodemonConfig": {
|
"nodemonConfig": {
|
||||||
|
|||||||
@@ -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
|
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);
|
const channel = this.GetChannel(channel_id);
|
||||||
|
for (const [role, embeds] of Object.entries(data)) {
|
||||||
channel.send({ content: `<@&${role}>`, embeds: this.alarmPingQueue[channel_id][role] });
|
channel.send({ content: `<@&${role}>`, embeds: embeds });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.alarmPingQueue = {};
|
this.alarmPingQueue = {};
|
||||||
|
|||||||
Reference in new issue
Block a user