update/embed styles for credential status
This commit is contained in:
2 files changed
+5
-4
No files matched your search
+4
-3
@@ -194,11 +194,12 @@ module.exports = {
|
|||||||
|
|
||||||
if (args[0].name == 'credentials-status') {
|
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()
|
const statusEmbed = new EmbedBuilder()
|
||||||
.setColor(client.config.Colors.Green)
|
.setColor(ok ? client.config.Colors.Green : client.config.Colors.Red)
|
||||||
.setTitle("Nitrado Credentials Status")
|
.setTitle("Nitrado Credentials Status")
|
||||||
.setDescription(`**Status**\n> \`${GuildDB.Nitrado.Status}\`\n> ${notice}`);
|
.setDescription(`**Status:** \`${GuildDB.Nitrado.Status}\`\n> ${notice}`);
|
||||||
|
|
||||||
return interaction.send({ embeds: [statusEmbed] });
|
return interaction.send({ embeds: [statusEmbed] });
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dayzr-bot",
|
"name": "dayzr-bot",
|
||||||
"version": "13.3.4",
|
"version": "13.3.5",
|
||||||
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
|
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"nodemonConfig": {
|
"nodemonConfig": {
|
||||||
|
|||||||
Reference in new issue
Block a user