13 lines
373 B
Python
13 lines
373 B
Python
from .config import Config
|
|
from .logger import create_logger
|
|
from .bot import create_bot
|
|
from .i18n import I18N
|
|
|
|
|
|
def main():
|
|
config = Config()
|
|
logger = create_logger("mybot", config.LOG_LEVEL)
|
|
i18n = I18N(logger, config.I18N_PATH)
|
|
bot = create_bot(config, logger, i18n)
|
|
bot.infinity_polling(config.TIMEOUT, config.DROP_PENDING, config.POLLING_TIMEOUT)
|