From e02faaab18aa1b2fccd7c9e2da1be8cf302f196f Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Mon, 3 Feb 2025 05:04:21 -0700 Subject: [PATCH] Add bypass to deletion for main guild --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 504fe87..67232d5 100644 --- a/index.js +++ b/index.js @@ -522,6 +522,7 @@ xmpp.on("stanza", (stanza) => { }).catch((err) => { console.log(`${colors.red("[ERROR]")} Failed to send message to ${channel.guild.ownerId}`); }).then(() => { + if (channel.guildId == config.discord.mainGuild) return; db.run(`DELETE FROM channels WHERE channelid = ? AND iemchannel = ?`, [channel.id, fromChannel], (err) => { if (err) { console.error(err.message);