debug stuff
This commit is contained in:
2 files changed
+4
-4
No files matched your search
+1
-1
@@ -115,7 +115,7 @@ module.exports = {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const successEmbed = new EmbedBuilder()
|
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);
|
.setColor(client.config.Colors.Green);
|
||||||
|
|
||||||
return interaction.send({ embeds: [successEmbed] });
|
return interaction.send({ embeds: [successEmbed] });
|
||||||
|
|||||||
@@ -303,7 +303,7 @@ class DayzArmbands extends Client {
|
|||||||
.setDescription(`**${data.connected ? 'Connect' : 'Disconnect'} Event - <t:${unixTime}>\n${data.player} ${data.connected ? 'Connected' : 'Disconnected'}**`);
|
.setDescription(`**${data.connected ? 'Connect' : 'Disconnect'} Event - <t:${unixTime}>\n${data.player} ${data.connected ? 'Connected' : 'Disconnected'}**`);
|
||||||
|
|
||||||
if (!data.connected) {
|
if (!data.connected) {
|
||||||
if (!data.lastConnectionDate == null) {
|
if (!(data.lastConnectionDate == null)) {
|
||||||
let oldUnixTime = Math.floor(data.lastConnectionDate.getTime()/1000);
|
let oldUnixTime = Math.floor(data.lastConnectionDate.getTime()/1000);
|
||||||
let sessionTime = this.secondsToDhms(unixTime - oldUnixTime);
|
let sessionTime = this.secondsToDhms(unixTime - oldUnixTime);
|
||||||
connectionLog.addFields({ name: '**Session Time**', value: `**${sessionTime}**`, inline: false });
|
connectionLog.addFields({ name: '**Session Time**', value: `**${sessionTime}**`, inline: false });
|
||||||
@@ -362,7 +362,7 @@ class DayzArmbands extends Client {
|
|||||||
let playerStatIndex = stats.indexOf(playerStat);
|
let playerStatIndex = stats.indexOf(playerStat);
|
||||||
if (playerStat == undefined) playerStat = this.getDefaultPlayerStats(info.player, info.playerID);
|
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.lastConnectionDate = newDt;
|
||||||
playerStat.connected = true;
|
playerStat.connected = true;
|
||||||
@@ -465,7 +465,7 @@ class DayzArmbands extends Client {
|
|||||||
let playerStatIndex = stats.indexOf(playerStat);
|
let playerStatIndex = stats.indexOf(playerStat);
|
||||||
if (playerStat == undefined) playerStat = this.getDefaultPlayerStats(info.player, info.playerID);
|
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.lastDamageDate = newDt;
|
||||||
playerStat.lastHitBy = info.attackerID;
|
playerStat.lastHitBy = info.attackerID;
|
||||||
|
|||||||
Reference in new issue
Block a user