From 1285cb7a7404263449e3ffc8aa1ca7c9ad7ea776 Mon Sep 17 00:00:00 2001 From: CMHopeSunshine <277073121@qq.com> Date: Thu, 20 Oct 2022 21:38:47 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=B8=8D=E5=B0=8F=E5=BF=83?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=A4=9A=E4=BA=86(?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LittlePaimon/__init__.py | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/LittlePaimon/__init__.py b/LittlePaimon/__init__.py index 46355a7..2973a02 100644 --- a/LittlePaimon/__init__.py +++ b/LittlePaimon/__init__.py @@ -7,13 +7,13 @@ from LittlePaimon.utils.migration import migrate_database from LittlePaimon.utils.tool import check_resource DRIVER = get_driver() -__version__ = '3.0.0beta8' +__version__ = '3.0.0beta9' try: SUPERUSERS: List[int] = [int(s) for s in DRIVER.config.superusers] except KeyError: SUPERUSERS = [] - logger.error('请在.env.prod文件中中配置超级用户SUPERUSERS') + logger.warning('请在.env.prod文件中中配置超级用户SUPERUSERS') try: NICKNAME: str = list(DRIVER.config.nickname)[0] @@ -33,23 +33,14 @@ logo = """ async def startup(): logger.opt(colors=True).info(logo) await database.connect() - from LittlePaimon import web - # from LittlePaimon import admin + from LittlePaimon import admin # await migrate_database() - # await check_resource() + await check_resource() DRIVER.on_shutdown(database.disconnect) -# load_plugin('LittlePaimon.plugins.Mihoyo_bbs') -# load_plugin('LittlePaimon.plugins.tools') -# load_plugin('LittlePaimon.plugins.Chat') -load_plugin('LittlePaimon.plugins.Paimon_MonthInfo') -load_plugin('LittlePaimon.plugins.Paimon_Info') -# load_plugin('LittlePaimon.plugins.Paimon_Abyss') -# load_plugin('LittlePaimon.plugins.Paimon_Bind') - -# load_plugin('LittlePaimon.manager.bot_manager') -# load_plugin('LittlePaimon.manager.plugin_manager') -# load_plugin('LittlePaimon.manager.database_manager') -# load_plugin('LittlePaimon.manager.alias_manager') -# load_plugins(str(Path(__file__).parent / 'plugins')) +load_plugin('LittlePaimon.manager.bot_manager') +load_plugin('LittlePaimon.manager.plugin_manager') +load_plugin('LittlePaimon.manager.database_manager') +load_plugin('LittlePaimon.manager.alias_manager') +load_plugins(str(Path(__file__).parent / 'plugins'))