From c9d173863b65d60d83806a78f1dcde2019fc441e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Wed, 24 Aug 2022 19:02:53 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=84=20=E4=BF=AE=E6=94=B9=E6=97=A5?= =?UTF-8?q?=E8=AE=B0=E8=BE=93=E5=87=BA=E5=B9=B6=E5=8A=A0=E8=BD=BD=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/plugins/register.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/utils/plugins/register.py b/utils/plugins/register.py index c39f9c5..5aceb67 100644 --- a/utils/plugins/register.py +++ b/utils/plugins/register.py @@ -30,20 +30,17 @@ def register_plugin_handlers(application: Application): application.add_handler(CallbackQueryHandler(handler, pattern=query, block=block)) # 初始化 - Log.info("正在加载插件管理器") + Log.info("正在加载动态插件管理器") plugins_manager = PluginsManager() - + plugins_manager.add_exclude(["start", "auth", "inline", "errorhandler"]) # 忽略内置模块 + Log.info("正在加载插件") plugins_manager.refresh_list("plugins/genshin/*") - - # 忽略内置模块 - # plugins_manager.add_exclude(["start", "auth", "inline", "errorhandler"]) - + plugins_manager.refresh_list("plugins/system/*") Log.info("加载插件管理器正在加载插件") plugins_manager.import_module() plugins_manager.add_handler(application) - Log.info("正在加载内置插件") - + Log.info("正在加载静态系统插件") inline = Inline() new_chat_members_handler = NewChatMembersHandler()