# 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
    bot_header.LP_REQUESTS_DONE = 0
    bot_header.API_REQUESTS = 0
    bot_header.FAILED_API_REQUESTS = 0
    bot_header.AUTO_EXEC_THREAD_INSTANCE = None


    #enable print hook
    def MyHookOut(text):
        rtext = text

        if text.strip() and apply_date_to_output:
            rtext = '[%s] ' % time.strftime("%c") + text

        if not ">>" in rtext:
            if "[::" in rtext and not "[LOG]" in rtext:
                rtext = rtext.replace("[::", "[")
                bot_header.LOG.append(rtext)
                if log:
                    with open(log, 'at') as logf:
                        logf.write(rtext + "\n")

                if bot_console_instance is not None:
                    a = bot_console_instance.get_message()
                    #return 1, 1, ("\r" + rtext), "text"

        if rtext.__contains__(bot_header.WARNING):
            rtext = rtext.replace(bot_header.WARNING, "")
            rtext = colored(rtext, "yellow")
        return 1, 1, ("\r" + rtext), None


# 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

    bot_header.LP_REQUESTS_DONE = 0
    bot_header.API_REQUESTS = 0
    bot_header.FAILED_API_REQUESTS = 0
    bot_header.AUTO_EXEC_THREAD_INSTANCE = None


    #enable print hook
    def MyHookOut(text):
        rtext = text

        if text.strip() and apply_date_to_output:
            rtext = '[%s] ' % time.strftime("%c") + text

        if not ">>" in rtext:
            if "[::" in rtext and not "[LOG]" in rtext:
                rtext = rtext.replace("[::", "[")
                bot_header.LOG.append(rtext)
                if log:
                    with open(log, 'at') as logf:
                        logf.write(rtext + "\n")

                if bot_console_instance is not None:
                    a = bot_console_instance.get_message()
                    #return 1, 1, ("\r" + rtext), "text"

        if rtext.__contains__(bot_header.WARNING):
            rtext = rtext.replace(bot_header.WARNING, "")
            rtext = colored(rtext, "yellow")
        return 1, 1, ("\r" + rtext), None


    phOut = print_hook.PrintHook()