debug new lookup commands
This commit is contained in:
4 files changed
+6
-3
No files matched your search
@@ -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()
|
||||||
|
|||||||
@@ -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
@@ -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": {
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user