Skip to content

Commit

Permalink
feat: Do not search if are the owner
Browse files Browse the repository at this point in the history
  • Loading branch information
Zastinian committed Nov 30, 2024
1 parent 7e6e637 commit 0893ebf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hedystia.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0893ebf

Please sign in to comment.