Skip to content

Commit

Permalink
Update cowner.py
Browse files Browse the repository at this point in the history
  • Loading branch information
THE-VIP-BOY-OP authored Nov 24, 2024
1 parent 2e9fb43 commit 31f20cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shizuchat/user/helpers/cowner.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from shizuchat import db
from shizuchat import db, SUDOERS
from config import OWNER_ID

cloneownerdb = db.clone_owners
Expand All @@ -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

0 comments on commit 31f20cf

Please sign in to comment.