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": {