From 0893ebf81d812d9b1cd0ef1cada92d3adf58a399 Mon Sep 17 00:00:00 2001 From: Zastinian Date: Fri, 29 Nov 2024 22:57:57 -0600 Subject: [PATCH] feat: Do not search if are the owner --- hedystia.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hedystia.js b/hedystia.js index 541aebe..c2d896a 100644 --- a/hedystia.js +++ b/hedystia.js @@ -88,9 +88,9 @@ module.exports = async (hedystia, m) => { cont = status; } } - const privateStatus = globalThis.db.config.select("private", { id: "private" })[0].value; - if (!privateStatus) { - if (!isBotOwner) { + if (!isBotOwner) { + const privateStatus = globalThis.db.config.select("private", { id: "private" })[0].value; + if (!privateStatus) { if (!isGroup) { return; }