# Path: console/bot_console.py
# class Console(object):
#     def get_message(self):
#     def exec_startup(self):
#     def run_looped(self):
#     def run(self, ui):
#     def process_dir(self, ui, dir):
# 
# Path: utils/print_hook.py
# class PrintHook:
#     def __init__(self, out=1):
#     def TestHook(self, text):
#     def Start(self, func=None):
#     def flush(self):
#     def Stop(self):
#     def write(self, text):
# 
# Path: vk_auth/bot_auth.py
# def authorize(username=None, password=None, type=None):
#     if username is None:
#         username = input("Enter your username: ")
#     if password is None:
#         password = input("Enter your password: ")
# 
#     au = vk_auth.auth.VKAuth(username, password, authtype=type)
#     auth_try(au)


from termcolor import colored
from optparse import OptionParser
from console import bot_console
from utils import print_hook
from vk_auth.bot_auth import authorize
import time
import bot_header
import vk_auth.account_manager
import vk_auth.select_acc_menu
import vk_auth.vk_app
    import long_pool.long_pool
    am = vk_auth.account_manager.AccountManager()
    list = am.get_account_list()

    # checking for isEmpty
    if len(list) > 0:
        # select menu
        if num == '999':
            auth()
        # Enter select acc menu
        account = vk_auth.select_acc_menu.select_acc(list, num)
        # if user entered 999, adding new acc
        if account is None:
            auth()
            # Enter select acc menu again
            account = vk_auth.select_acc_menu.select_acc(list, num)
        if options[LONG_POOL_KEY] == True:
            start_long_pool(account)
        select(account)

    else:
        # auth
        print("You need to Log In to your account")
        auth()

    # The selected account logic is executing in select()

   # phOut.Stop()


def auth():

# Path: console/bot_console.py
# class Console(object):
#     def get_message(self):
#     def exec_startup(self):
#     def run_looped(self):
#     def run(self, ui):
#     def process_dir(self, ui, dir):
# 
# Path: utils/print_hook.py
# class PrintHook:
#     def __init__(self, out=1):
#     def TestHook(self, text):
#     def Start(self, func=None):
#     def flush(self):
#     def Stop(self):
#     def write(self, text):
# 
# Path: vk_auth/bot_auth.py
# def authorize(username=None, password=None, type=None):
#     if username is None:
#         username = input("Enter your username: ")
#     if password is None:
#         password = input("Enter your password: ")
# 
#     au = vk_auth.auth.VKAuth(username, password, authtype=type)
#     auth_try(au)


# Path: bot.py
from termcolor import colored
from optparse import OptionParser
from console import bot_console
from utils import print_hook
from vk_auth.bot_auth import authorize
import time
import bot_header
import vk_auth.account_manager
import vk_auth.select_acc_menu
import vk_auth.vk_app
    import long_pool.long_pool

    am = vk_auth.account_manager.AccountManager()
    list = am.get_account_list()

    # checking for isEmpty
    if len(list) > 0:
        # select menu
        if num == '999':
            auth()
        # Enter select acc menu
        account = vk_auth.select_acc_menu.select_acc(list, num)
        # if user entered 999, adding new acc
        if account is None:
            auth()
            # Enter select acc menu again
            account = vk_auth.select_acc_menu.select_acc(list, num)
        if options[LONG_POOL_KEY] == True:
            start_long_pool(account)
        select(account)

    else:
        # auth
        print("You need to Log In to your account")
        auth()

    # The selected account logic is executing in select()

   # phOut.Stop()


def auth():

    authorize(username=username, password=password, type=auth_app)