debug new lookup commands

This commit is contained in:
SowinskiBraeden committed 2023-06-07 14:23:46 -07:00
1 parent 824e84dc24
commit 3fe27458b8
4 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -47,7 +47,7 @@ module.exports = {
.setColor(client.config.Colors.Yellow) .setColor(client.config.Colors.Yellow)
.setDescription(`**Record Found**\n> The gamertag \` ${playerStat.gamertag} \` is currently linked to <@${playerStat.discordID}>.`) .setDescription(`**Record Found**\n> The gamertag \` ${playerStat.gamertag} \` is currently linked to <@${playerStat.discordID}>.`)
return interaction.send({ embeds: [found], components: [opt] }); return interaction.send({ embeds: [found] });
} }
let notFound = new EmbedBuilder() let notFound = new EmbedBuilder()
+1 -1
View File
@@ -46,7 +46,7 @@ module.exports = {
.setColor(client.config.Colors.Yellow) .setColor(client.config.Colors.Yellow)
.setDescription(`**Record Found**\n> The user <@${playerStat.discordID}> has linked the gamertag \` ${playerStat.gamertag} \`.`) .setDescription(`**Record Found**\n> The user <@${playerStat.discordID}> has linked the gamertag \` ${playerStat.gamertag} \`.`)
return interaction.send({ embeds: [found], components: [opt] }); return interaction.send({ embeds: [found] });
}, },
}, },
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "dayz-armbands", "name": "dayz-armbands",
"version": "6.12.1", "version": "6.12.2",
"description": "A General Purpose Discord Bot for DayZ Servers.", "description": "A General Purpose Discord Bot for DayZ Servers.",
"main": "index.js", "main": "index.js",
"nodemonConfig": { "nodemonConfig": {
+3
View File
@@ -102,6 +102,9 @@ module.exports = {
if (alarm.disabled || !alarm.rules.includes('ban_on_kill')) continue; // ignore if alarm is disabled or not ban on kill; if (alarm.disabled || !alarm.rules.includes('ban_on_kill')) continue; // ignore if alarm is disabled or not ban on kill;
if (alarm.ignoredPlayers.includes(data.killerID)) continue; if (alarm.ignoredPlayers.includes(data.killerID)) continue;
console.log(data);
console.log(alarm);
let diff = [Math.round(alarm.origin[0] - data.killerPOS[0]), Math.round(alarm.origin[1] - data.killerPOS[1])]; let diff = [Math.round(alarm.origin[0] - data.killerPOS[0]), Math.round(alarm.origin[1] - data.killerPOS[1])];
let distance = Math.sqrt(Math.pow(diff[0], 2) + Math.pow(diff[1], 2)).toFixed(2) let distance = Math.sqrt(Math.pow(diff[0], 2) + Math.pow(diff[1], 2)).toFixed(2)