diff --git a/package.json b/package.json index f66fb3d..b324cf8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayz-armbands", - "version": "8.2.7", + "version": "8.2.8", "description": "A General Purpose Discord Bot for DayZ Servers.", "main": "index.js", "nodemonConfig": { diff --git a/structures/DayzArmbands.js b/structures/DayzArmbands.js index 90f9459..2c5b8fc 100644 --- a/structures/DayzArmbands.js +++ b/structures/DayzArmbands.js @@ -132,7 +132,7 @@ class DayzArmbands extends Client { let lines = []; for await (const line of rl) { lines.push(line); } - let logIndex = lines.indexOf(history.lastLog) == -1 ? 0 : lines.indexOf(history.lastLog); + let logIndex = lines.indexOf(history.lastLog); let guild = await this.GetGuild(guildId); if (!this.exists(guild.playerstats)) guild.playerstats = []; diff --git a/util/KillfeedHandler.js b/util/KillfeedHandler.js index 334a47c..37610d9 100644 --- a/util/KillfeedHandler.js +++ b/util/KillfeedHandler.js @@ -54,7 +54,7 @@ module.exports = { let newDt = await client.getDateEST(info.time); let unixTime = Math.floor(newDt.getTime()/1000); - if (!killedBy == 4) { + if (killedBy == 4) { const killEvent = new EmbedBuilder() .setColor(client.config.Colors.Default) .setDescription(`**Death Event** - \n**${info.victim}** killed by a **${info.causeOfDeath}.**`);