# 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
    global CONF_FILE,\
        num,\
        log,\
        apply_date_to_output,\
        password,\
        username,\
        timeout,\
        verbose,\
        auth_app

    num = options[ACC_NUM_KEY]
    log = options[LOG_FILE_KEY]
    apply_date_to_output = options[DD_KEY]
    password = options[PASSWD_KEY]
    username = options[UNAME_KEY]
    timeout = options[LONG_POOL_TIME_OUT_KEY]
    verbose = options[V_KEY]
    app_name = options[AUTH_APP_KEY]
    try:
        auth_app = vk_auth.vk_app.VKApp[app_name]
        bot_header.v("Using app %s" % app_name)
    except KeyError:
        bot_header.w("app %s not exists. Using WIN app" % app_name)
        auth_app = vk_auth.vk_app.VKApp.WIN
    pass


def create_console(acc):
    global bot_console_instance
    try:

# 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

    global CONF_FILE,\
        num,\
        log,\
        apply_date_to_output,\
        password,\
        username,\
        timeout,\
        verbose,\
        auth_app

    num = options[ACC_NUM_KEY]
    log = options[LOG_FILE_KEY]
    apply_date_to_output = options[DD_KEY]
    password = options[PASSWD_KEY]
    username = options[UNAME_KEY]
    timeout = options[LONG_POOL_TIME_OUT_KEY]
    verbose = options[V_KEY]
    app_name = options[AUTH_APP_KEY]
    try:
        auth_app = vk_auth.vk_app.VKApp[app_name]
        bot_header.v("Using app %s" % app_name)
    except KeyError:
        bot_header.w("app %s not exists. Using WIN app" % app_name)
        auth_app = vk_auth.vk_app.VKApp.WIN
    pass


def create_console(acc):
    global bot_console_instance
    try:

        bot_console_instance = bot_console.Console()