From a16a407002792c19fa987c1e2b91f1d3c23cc854 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Mon, 4 Sep 2023 17:38:16 -0700 Subject: [PATCH] change/dynamic kill message for explosive + vehicle deaths --- package.json | 2 +- util/KillfeedHandler.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5053b57..5ad73dd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayzr-bot", - "version": "9.6.5", + "version": "9.6.6", "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 acff4f9..eb695a0 100644 --- a/util/KillfeedHandler.js +++ b/util/KillfeedHandler.js @@ -80,10 +80,11 @@ module.exports = { if (killedBy == Templates.LandMine || killedBy == Templates.Explosion || killedBy == Templates.Vehicle) { const cod = killedBy == Templates.LandMine ? `Land Mine Trap` : info.causeOfDeath; const coord = showCoords ? `\n**Location [${info.victimPOS[0]}, ${info.victimPOS[1]}](https://www.izurvive.com/chernarusplussatmap/#location=${info.victimPOS[0]};${info.victimPOS[1]})**` : ''; + const killMessage = killedBy == Templayed.Vehicle ? 'run over by' : 'blew up from'; const killEvent = new EmbedBuilder() .setColor(client.config.Colors.Default) - .setDescription(`**Death Event** - \n**${info.victim}** killed by a **${cod}.**${coord}`); + .setDescription(`**Death Event** - \n**${info.victim}** ${killMessage} a **${cod}.**${coord}`); if (client.exists(channel)) await channel.send({ embeds: [killEvent] }); return stats;