From 31f20cf149f59bb2dd6a02e065d53dc907f98659 Mon Sep 17 00:00:00 2001 From: THE VIP BOY <117478195+THE-VIP-BOY-OP@users.noreply.github.com> Date: Mon, 25 Nov 2024 00:50:32 +0530 Subject: [PATCH] Update cowner.py --- shizuchat/user/helpers/cowner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shizuchat/user/helpers/cowner.py b/shizuchat/user/helpers/cowner.py index 8dab349..d3556de 100644 --- a/shizuchat/user/helpers/cowner.py +++ b/shizuchat/user/helpers/cowner.py @@ -1,4 +1,4 @@ -from shizuchat import db +from shizuchat import db, SUDOERS from config import OWNER_ID cloneownerdb = db.clone_owners @@ -11,6 +11,6 @@ async def get_clone_owner(bot_id): async def is_owner(bot_id, user_id): owner_id = await get_clone_owner(bot_id) - if owner_id == user_id or user_id == OWNER_ID: + if owner_id == user_id or user_id == OWNER_ID or user_id in SUDOERS: return True return False