debug stuff

This commit is contained in:
SowinskiBraeden committed 2023-04-02 15:26:12 -07:00
1 parent 621855bf11
commit a789025d7e
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -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] });
+3 -3
View File
@@ -303,7 +303,7 @@ class DayzArmbands extends Client {
.setDescription(`**${data.connected ? 'Connect' : 'Disconnect'} Event - <t:${unixTime}>\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;