update/embed styles for credential status

This commit is contained in:
SowinskiBraeden committed 2024-11-08 13:54:00 -08:00
1 parent caf43aac4e
commit c0f59cc040
2 files changed
+5 -4

No files matched your search

+4 -3
View File
@@ -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] });
+1 -1
View File
@@ -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": {