change/dynamic kill message for explosive + vehicle deaths

This commit is contained in:
SowinskiBraeden committed 2023-09-04 17:38:16 -07:00
1 parent dadb833c2b
commit a16a407002
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -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": {
+2 -1
View File
@@ -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** - <t:${unixTime}>\n**${info.victim}** killed by a **${cod}.**${coord}`);
.setDescription(`**Death Event** - <t:${unixTime}>\n**${info.victim}** ${killMessage} a **${cod}.**${coord}`);
if (client.exists(channel)) await channel.send({ embeds: [killEvent] });
return stats;