From dadb833c2b27e01568e6ee6f90a73111016eff75 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Mon, 4 Sep 2023 17:34:25 -0700 Subject: [PATCH] fix/killfeed showCoord is undefined --- package.json | 2 +- util/KillfeedHandler.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index cd7a78e..5053b57 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayzr-bot", - "version": "9.6.4", + "version": "9.6.5", "description": "A General Purpose Discord Bot for DayZ Nitrado Servers.", "main": "index.js", "nodemonConfig": { diff --git a/util/KillfeedHandler.js b/util/KillfeedHandler.js index 135753a..acff4f9 100644 --- a/util/KillfeedHandler.js +++ b/util/KillfeedHandler.js @@ -168,7 +168,7 @@ module.exports = { if (victimStatIndex == -1) stats.push(victimStat); else stats[victimStatIndex] = victimStat; - const coord = showCoord ? `\n**Location [${info.killerPOS[0]}, ${info.killerPOS[1]}](https://www.izurvive.com/chernarusplussatmap/#location=${info.killerPOS[0]};${info.killerPOS[1]})**` : ''; + const coord = showCoords ? `\n**Location [${info.killerPOS[0]}, ${info.killerPOS[1]}](https://www.izurvive.com/chernarusplussatmap/#location=${info.killerPOS[0]};${info.killerPOS[1]})**` : ''; const killEvent = new EmbedBuilder() .setColor(client.config.Colors.Default)