From 98b38f2a30e56e72eae9a261325a5faa1243e023 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Wed, 26 Jul 2023 23:27:32 -0700 Subject: [PATCH] update/killfeed-show-coord --- package.json | 2 +- util/KillfeedHandler.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a6a40fa..06d3d5f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayz-armbands", - "version": "8.3.0", + "version": "8.3.1", "description": "A General Purpose Discord Bot for DayZ Servers.", "main": "index.js", "nodemonConfig": { diff --git a/util/KillfeedHandler.js b/util/KillfeedHandler.js index 37610d9..69c104d 100644 --- a/util/KillfeedHandler.js +++ b/util/KillfeedHandler.js @@ -57,7 +57,7 @@ module.exports = { if (killedBy == 4) { const killEvent = new EmbedBuilder() .setColor(client.config.Colors.Default) - .setDescription(`**Death Event** - \n**${info.victim}** killed by a **${info.causeOfDeath}.**`); + .setDescription(`**Death Event** - \n**${info.victim}** killed by a **${info.causeOfDeath}.\nLocation [${info.victimPOS.pos[0]}, ${info.victimPOS.pos[1]}](https://www.izurvive.com/chernarusplussatmap/#location=${info.victimPOS.pos[0]};${info.victimPOS.pos[1]})**`); if (client.exists(channel)) await channel.send({ embeds: [killEvent] }); return stats; @@ -144,7 +144,7 @@ module.exports = { const killEvent = new EmbedBuilder() .setColor(client.config.Colors.Default) - .setDescription(`**Kill Event** - \n**${info.killer}** killed **${info.victim}**\n> **__Kill Data__**\n> **Weapon:** \` ${info.weapon} \`\n> **Distance:** \` ${info.distance} \`\n> **Body Part:** \` ${info.bodyPart != undefined ? info.bodyPart.split('(')[0] : 'N/A'} \`\n> **Damage:** \` ${info.damage != undefined ? info.damage : 'N/A'} \`\n **Killer\n${killerStat.KDR.toFixed(2)} K/D - ${killerStat.kills} Kills - Killstreak: ${killerStat.killStreak}\nVictim\n${victimStat.KDR.toFixed(2)} K/D - ${victimStat.deaths} Deaths - Deathstreak: ${victimStat.deathStreak}**`); + .setDescription(`**Kill Event** - \n**${info.killer}** killed **${info.victim}**\n> **__Kill Data__**\n> **Weapon:** \` ${info.weapon} \`\n> **Distance:** \` ${info.distance} \`\n> **Body Part:** \` ${info.bodyPart != undefined ? info.bodyPart.split('(')[0] : 'N/A'} \`\n> **Damage:** \` ${info.damage != undefined ? info.damage : 'N/A'} \`\n **Killer\n${killerStat.KDR.toFixed(2)} K/D - ${killerStat.kills} Kills - Killstreak: ${killerStat.killStreak}\nVictim\n${victimStat.KDR.toFixed(2)} K/D - ${victimStat.deaths} Deaths - Deathstreak: ${victimStat.deathStreak}\nLocation [${info.killerPOS.pos[0]}, ${info.killerPOS.pos[1]}](https://www.izurvive.com/chernarusplussatmap/#location=${info.killerPOS.pos[0]};${info.killerPOS.pos[1]})**`); if (client.exists(channel)) await channel.send({ embeds: [killEvent] }); if (client.exists(receivedBounty) && client.exists(channel)) await channel.send({ content: `<@${killerStat.discordID}>`, embeds: [receivedBounty] });