From f0520eae8c6f552d9644095e554ed006eee751ae Mon Sep 17 00:00:00 2001 From: SowinskiBraeden Date: Tue, 23 Apr 2024 17:43:44 -0700 Subject: [PATCH] fix/config killfeed --- commands/config.js | 10 ++++++++-- package.json | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/commands/config.js b/commands/config.js index 8b52cf7..c4021b9 100644 --- a/commands/config.js +++ b/commands/config.js @@ -771,7 +771,13 @@ module.exports = { if (err) return client.sendInternalError(interaction, err); }); - } else if ('show_coords') { + const successConfigureKillfeedChannel = new EmbedBuilder() + .setColor(client.config.Colors.Green) + .setDescription(`Successfully configured the killfeed channel to <#${channel}>`); + + return interaction.send({ embeds: [successConfigureKillfeedChannel] }); + + } else if (killfeed_configuration == 'show_coords') { const showKillfeedCoordsConfiguration = args[0].options[0].options[0].value ? 1 : 0; client.dbo.collection("guilds").updateOne({"server.serverID":GuildDB.serverID},{$set: {"server.showKillfeedCoords": showKillfeedCoordsConfiguration}}, (err, res) => { @@ -784,7 +790,7 @@ module.exports = { return interaction.send({ embeds: [successConfigureShowKillfeedCoords] }); - } else if ('show_weapon') { + } else if (killfeed_configuration == 'show_weapon') { const showKillfeedWeaponConfiguration = args[0].options[0].options[0].value ? 1 : 0; diff --git a/package.json b/package.json index 5fcafbb..6a2c581 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayzr-bot", - "version": "13.0.9", + "version": "13.0.10", "description": "A General Purpose Discord Bot for DayZ Nitrado Servers.", "main": "index.js", "nodemonConfig": {