async def is_gmuted(userid): is_gmuted = cli.find_one({'user_id': userid}) return bool(is_gmuted)
async def check_one(key): return (False if not cli.find_one({"Key": key}) else cli.find_one({"Key": key}))
async def check_user(user): return (False if not cli.find_one({"User": user}) else cli.find_one( {"User": user}))
async def check_gfolder(): return (False if not cli.find_one({"GFolder": { "$exists": True }}) else cli.find_one({"GFolder": { "$exists": True }})["GFolder"])
async def check_afk(): return cli.find_one({"Message": {"$exists": True}})
async def check_path(): return ("./" if not cli.find_one({"Path": { "$exists": True }}) else cli.find_one({"Path": { "$exists": True }})["Path"])
async def check_restart(): return (False if not cli.find_one({"Message": { "$exists": True }}) else cli.find_one({"Message": { "$exists": True }}))
async def check_blacklist(id): return bool(cli.find_one({"Blacklist": id}))
async def check_others(): return False if cli.find_one({"Others": False}) else True
async def check_msg(): return False if not cli.find_one({"ID": 2}) else cli.find_one( {"ID": 2})["Message"]
async def blacklist_check_one(trigger): return (False if not cli.find_one({"trigger": trigger}) else cli.find_one( {"trigger": trigger}))
async def check_name(): return False if not cli.find_one({"ID": 1}) else cli.find_one({"ID": 1 })["Name"]
async def get_current_welcome_settings(chat_id): return cli.find_one({'chat_id': chat_id})
async def check_one(name): return bool(cli.find_one({"Name": name}))
async def check_city(): return ("" if not cli.find_one({"City": { "$exists": True }}) else cli.find_one({"City": { "$exists": True }})["City"])
async def check_antipm(): return (False if not cli.find_one({"AntiPM": { "$exists": True }}) else cli.find_one({"AntiPM": { "$exists": True }})["AntiPM"])
async def check_pack(): return ("" if not cli.find_one({"Pack": { "$exists": True }}) else cli.find_one({"Pack": { "$exists": True }})["Pack"])
async def check_limit(): return (3 if not cli.find_one({"Limit": { "$exists": True }}) else cli.find_one({"Limit": { "$exists": True }})["Limit"])
async def check_prefix(): return ("." if not cli.find_one({"Prefix": { "$exists": True }}) else cli.find_one({"Prefix": { "$exists": True }})["Prefix"])
async def check_sblock(): return (False if not cli.find_one({"SuperBlock": { "$exists": True }}) else cli.find_one({"SuperBlock": { "$exists": True }})["SuperBlock"])
async def check_asset(): return (False if not cli.find_one({"Asset": { "$exists": True }}) else cli.find_one({"Asset": { "$exists": True }})["Asset"])
async def check_notifs(): return (True if not cli.find_one({"Notifications": { "$exists": True }}) else cli.find_one({"Notifications": { "$exists": True }})["Notifications"])
async def check_one(name): return (False if not cli.find_one({"Name": name}) else True)
async def check_approved(user): return cli.find_one({"Approved": user})
async def check_godark(): return cli.find_one({"GoDark": {"$exists": True}})
async def is_muted(chatid, userid): is_muted = cli.find_one({'chat_id': chatid, 'user_id': userid}) return bool(is_muted)
async def check_others(): return not cli.find_one({"Others": False})
async def check_blacklist(id): return (False if not cli.find_one({"Blacklist": id}) else True)
async def get_filter(chatid, keyword): return cli.find_one({'chat_id': chatid, 'keyword': keyword})
async def get_note(chatid, name): return cli.find_one({'chat_id': chatid, 'name': name})