diff --git a/commands/money.js b/commands/money.js index 18edfed..187909f 100644 --- a/commands/money.js +++ b/commands/money.js @@ -115,7 +115,7 @@ module.exports = { }); const successEmbed = new EmbedBuilder() - .setDescription(`Successfully ${args[0].name == 'add' ? 'added' : 'removed'} **$${args[0].options[0].value.toLocaleString(undefined, {minimumFractionDigits: 2, maximumFractionDigits: 2})}** ${args[0] == 'add' ? 'to' : 'from'} <@${targetUserID}>'s balance`) + .setDescription(`Successfully ${args[0].name == 'add' ? 'added' : 'removed'} **$${args[0].options[0].value.toLocaleString(undefined, {minimumFractionDigits: 2, maximumFractionDigits: 2})}** ${args[0].name == 'add' ? 'to' : 'from'} <@${targetUserID}>'s balance`) .setColor(client.config.Colors.Green); return interaction.send({ embeds: [successEmbed] }); diff --git a/structures/DayzArmbands.js b/structures/DayzArmbands.js index 97dbbed..466f514 100644 --- a/structures/DayzArmbands.js +++ b/structures/DayzArmbands.js @@ -303,7 +303,7 @@ class DayzArmbands extends Client { .setDescription(`**${data.connected ? 'Connect' : 'Disconnect'} Event - \n${data.player} ${data.connected ? 'Connected' : 'Disconnected'}**`); if (!data.connected) { - if (!data.lastConnectionDate == null) { + if (!(data.lastConnectionDate == null)) { let oldUnixTime = Math.floor(data.lastConnectionDate.getTime()/1000); let sessionTime = this.secondsToDhms(unixTime - oldUnixTime); connectionLog.addFields({ name: '**Session Time**', value: `**${sessionTime}**`, inline: false }); @@ -362,7 +362,7 @@ class DayzArmbands extends Client { let playerStatIndex = stats.indexOf(playerStat); if (playerStat == undefined) playerStat = this.getDefaultPlayerStats(info.player, info.playerID); - let newDt = await this.getDateEST(data.time); + let newDt = await this.getDateEST(info.time); playerStat.lastConnectionDate = newDt; playerStat.connected = true; @@ -465,7 +465,7 @@ class DayzArmbands extends Client { let playerStatIndex = stats.indexOf(playerStat); if (playerStat == undefined) playerStat = this.getDefaultPlayerStats(info.player, info.playerID); - let newDt = await this.getDateEST(data.time); + let newDt = await this.getDateEST(info.time); playerStat.lastDamageDate = newDt; playerStat.lastHitBy = info.attackerID;