From c0f59cc040d0ce8993974a6ba0e81ad8d58d3f28 Mon Sep 17 00:00:00 2001 From: SowinskiBraeden Date: Fri, 8 Nov 2024 13:54:00 -0800 Subject: [PATCH] update/embed styles for credential status --- commands/server.js | 7 ++++--- package.json | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/commands/server.js b/commands/server.js index f4dead6..fb66f2a 100644 --- a/commands/server.js +++ b/commands/server.js @@ -194,11 +194,12 @@ module.exports = { if (args[0].name == 'credentials-status') { - const notice = GuildDB.Nitrado.Status == NitradoCredentialStatus.OK ? "Your provided Nitrado Credentials are working correctly, logs are being checked." : "Your provided Nitrado Credentials are not working. They may be incorrect, or your server may be down. Ensure your DayZ server is online, and try to initialize your server again and verify your credentials are correct." + const ok = GuildDB.Nitrado.Status == NitradoCredentialStatus.OK; + const notice = ok ? "Your provided Nitrado Credentials are working correctly, logs are being checked." : "Your provided Nitrado Credentials are not working. They may be incorrect, or your server may be down. Ensure your DayZ server is online, and try to initialize your server again and verify your credentials are correct." const statusEmbed = new EmbedBuilder() - .setColor(client.config.Colors.Green) + .setColor(ok ? client.config.Colors.Green : client.config.Colors.Red) .setTitle("Nitrado Credentials Status") - .setDescription(`**Status**\n> \`${GuildDB.Nitrado.Status}\`\n> ${notice}`); + .setDescription(`**Status:** \`${GuildDB.Nitrado.Status}\`\n> ${notice}`); return interaction.send({ embeds: [statusEmbed] }); diff --git a/package.json b/package.json index 1aa8f0c..ed62ef5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayzr-bot", - "version": "13.3.4", + "version": "13.3.5", "description": "A General Purpose Discord Bot for DayZ Nitrado Servers.", "main": "index.js", "nodemonConfig": {