From ec1b20b2fd2d0f361099870e606d6f4b60f4eca8 Mon Sep 17 00:00:00 2001 From: Zastinian Date: Fri, 29 Nov 2024 22:55:16 -0600 Subject: [PATCH 1/3] feat: Ignore if it is the owner --- hedystia.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hedystia.js b/hedystia.js index d735028..541aebe 100644 --- a/hedystia.js +++ b/hedystia.js @@ -90,8 +90,10 @@ module.exports = async (hedystia, m) => { } const privateStatus = globalThis.db.config.select("private", { id: "private" })[0].value; if (!privateStatus) { - if (!isGroup) { - return; + if (!isBotOwner) { + if (!isGroup) { + return; + } } } if (!cont) { From 7e6e6373581b668b7eb076323154b526e69d2129 Mon Sep 17 00:00:00 2001 From: Zastinian Date: Fri, 29 Nov 2024 22:55:22 -0600 Subject: [PATCH 2/3] feat: Bump to 3.3.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0836e78..5c0e954 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hedystiamd", - "version": "3.3.0", + "version": "3.3.1", "description": "A whatsapp bot that can be used to play music", "main": "index.js", "type": "commonjs", From 0893ebf81d812d9b1cd0ef1cada92d3adf58a399 Mon Sep 17 00:00:00 2001 From: Zastinian Date: Fri, 29 Nov 2024 22:57:57 -0600 Subject: [PATCH 3/3] 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; }