from core import misc


def load_modules():
    try:
        misc.loader.load_package('private.modules')
    except (ImportError, ModuleNotFoundError):
        pass
    misc.loader.load_packages(f"modules.{item}" for item in [
        'base',  # User management and base Middlewares
        'nologi', # Plotim plotim
        'get',  # GETs in chats
        'captcha_button',  # Captcha for new joined users
        'voteban',  # Voteban in chats
        'admin',  # Small admin commands
        'nsfw',  # Checking media for nsfw
        'amd_builds',  # AMD Builds from reddit
        'tail',  # Handle all unhandled actions
    ])

from core import misc


def load_modules():
    try:
        misc.loader.load_package('private.modules')
    except (ImportError, ModuleNotFoundError):
        pass
    misc.loader.load_packages(f"modules.{item}" for item in [
        'base',  # User management and base Middlewares
        'nologi', # Plotim plotim
        'get',  # GETs in chats
        'captcha_button',  # Captcha for new joined users
        'voteban',  # Voteban in chats
        'admin',  # Small admin commands
        'nsfw',  # Checking media for nsfw
        'amd_builds',  # AMD Builds from reddit
        'tail',  # Handle all unhandled actions
    ])

# User management and base Middlewares # Plotim plotim # GETs in chats # Captcha for new joined users # Voteban in chats # Small admin commands # Checking media for nsfw # AMD Builds from reddit # Handle all unhandled actions