예제 #1
0
async def is_gmuted(userid):
    is_gmuted = cli.find_one({'user_id': userid})

    return bool(is_gmuted)
예제 #2
0
async def check_one(key):
    return (False if not cli.find_one({"Key": key})
            else cli.find_one({"Key": key}))
예제 #3
0
async def check_user(user):
    return (False if not cli.find_one({"User": user}) else cli.find_one(
        {"User": user}))
예제 #4
0
async def check_gfolder():
    return (False if not cli.find_one({"GFolder": {
        "$exists": True
    }}) else cli.find_one({"GFolder": {
        "$exists": True
    }})["GFolder"])
예제 #5
0
async def check_afk():
    return cli.find_one({"Message": {"$exists": True}})
예제 #6
0
async def check_path():
    return ("./" if not cli.find_one({"Path": {
        "$exists": True
    }}) else cli.find_one({"Path": {
        "$exists": True
    }})["Path"])
예제 #7
0
async def check_restart():
    return (False if not cli.find_one({"Message": {
        "$exists": True
    }}) else cli.find_one({"Message": {
        "$exists": True
    }}))
예제 #8
0
async def check_blacklist(id):
    return bool(cli.find_one({"Blacklist": id}))
예제 #9
0
async def check_others():
    return False if cli.find_one({"Others": False}) else True
예제 #10
0
async def check_msg():
    return False if not cli.find_one({"ID": 2}) else cli.find_one(
        {"ID": 2})["Message"]
예제 #11
0
async def blacklist_check_one(trigger):
    return (False if not cli.find_one({"trigger": trigger}) else cli.find_one(
        {"trigger": trigger}))
예제 #12
0
async def check_name():
    return False if not cli.find_one({"ID": 1}) else cli.find_one({"ID": 1
                                                                   })["Name"]
예제 #13
0
async def get_current_welcome_settings(chat_id):
    return cli.find_one({'chat_id': chat_id})
예제 #14
0
async def check_one(name):
    return bool(cli.find_one({"Name": name}))
예제 #15
0
async def check_city():
    return ("" if not cli.find_one({"City": {
        "$exists": True
    }}) else cli.find_one({"City": {
        "$exists": True
    }})["City"])
예제 #16
0
async def check_antipm():
    return (False if not cli.find_one({"AntiPM": {
        "$exists": True
    }}) else cli.find_one({"AntiPM": {
        "$exists": True
    }})["AntiPM"])
예제 #17
0
async def check_pack():
    return ("" if not cli.find_one({"Pack": {
        "$exists": True
    }}) else cli.find_one({"Pack": {
        "$exists": True
    }})["Pack"])
예제 #18
0
async def check_limit():
    return (3 if not cli.find_one({"Limit": {
        "$exists": True
    }}) else cli.find_one({"Limit": {
        "$exists": True
    }})["Limit"])
예제 #19
0
async def check_prefix():
    return ("." if not cli.find_one({"Prefix": {
        "$exists": True
    }}) else cli.find_one({"Prefix": {
        "$exists": True
    }})["Prefix"])
예제 #20
0
async def check_sblock():
    return (False if not cli.find_one({"SuperBlock": {
        "$exists": True
    }}) else cli.find_one({"SuperBlock": {
        "$exists": True
    }})["SuperBlock"])
예제 #21
0
async def check_asset():
    return (False if not cli.find_one({"Asset": {
        "$exists": True
    }}) else cli.find_one({"Asset": {
        "$exists": True
    }})["Asset"])
예제 #22
0
async def check_notifs():
    return (True if not cli.find_one({"Notifications": {
        "$exists": True
    }}) else cli.find_one({"Notifications": {
        "$exists": True
    }})["Notifications"])
예제 #23
0
async def check_one(name):
    return (False if not cli.find_one({"Name": name}) else True)
예제 #24
0
async def check_approved(user):
    return cli.find_one({"Approved": user})
예제 #25
0
async def check_godark():
    return cli.find_one({"GoDark": {"$exists": True}})
예제 #26
0
async def is_muted(chatid, userid):
    is_muted = cli.find_one({'chat_id': chatid, 'user_id': userid})

    return bool(is_muted)
예제 #27
0
async def check_others():
    return not cli.find_one({"Others": False})
예제 #28
0
async def check_blacklist(id):
    return (False if not cli.find_one({"Blacklist": id})
            else True)
예제 #29
0
async def get_filter(chatid, keyword):
    return cli.find_one({'chat_id': chatid, 'keyword': keyword})
예제 #30
0
async def get_note(chatid, name):
    return cli.find_one({'chat_id': chatid, 'name': name})