From ddeeecb44dd4a1e66e7b0a0d2af89e7d37fcef5f Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Sat, 28 Oct 2023 09:24:15 -0700 Subject: [PATCH] fix/PlaceFirePlaceInAlarm parameters --- package.json | 2 +- src/DayzRBot.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6355d73..335a7e6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayzr-bot", - "version": "11.5.0", + "version": "11.5.1", "description": "A General Purpose Discord Bot for DayZ Nitrado Servers.", "main": "index.js", "nodemonConfig": { diff --git a/src/DayzRBot.js b/src/DayzRBot.js index 2826379..71e16fc 100644 --- a/src/DayzRBot.js +++ b/src/DayzRBot.js @@ -174,7 +174,7 @@ class DayzRBot extends Client { if (!(i + 1 >= lines.length) && lines[i + 1].includes('killed by Player') && lines[i].includes('hit by Player')) s = await HandleKillfeed(this, guildId, s, lines[i]); // Handles regular deaths 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 Zmb') || lines[i].includes('>) died.')) s = await UpdateLastDeathDate(this, s, lines[i]); // Updates users last death date for non PVP deaths. - if (lines[i].includes(') placed Fireplace')) await PlaceFireplaceInAlarm(client, guildId, lines[i]); + if (lines[i].includes(') placed Fireplace')) await PlaceFireplaceInAlarm(this, guildId, lines[i]); } // Handle alarm pings