fix/handle no coordinates in location cmd

This commit is contained in:
SowinskiBraeden committed 2024-04-23 09:39:12 -07:00
1 parent c3232f8267
commit fe7dc7d2f4
2 files changed
+7 -1

No files matched your search

+6
View File
@@ -32,6 +32,12 @@ module.exports = {
let playerStat = await client.dbo.collection("players").findOne({"discordID": interaction.member.user.id});
if (!client.exists(playerStat)) return interaction.send({ embeds: [new EmbedBuilder().setColor(client.config.Colors.Yellow).setDescription(`**Not Found** You haven't linked your gamertag and are unable to use this command.`)], flags: (1 << 6) });
if (!client.exists(playerStat.time)) return interaction.send({ emeds: [
new EmbedBuilder()
.setColor(client.config.Colors.Yellow)
.setDescription(`**Not Found** There is no location saved to your gamertag yet. Make sure you've logged into the server for more than **5 minutes.**`)
] });
let newDt = await client.getDateEST(playerStat.time);
let unixTime = Math.floor(newDt.getTime()/1000);
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "dayzr-bot",
"version": "13.0.6",
"version": "13.0.7",
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
"main": "index.js",
"nodemonConfig": {