From b558b51601c993e9528b60bc65913f0c31ec82b4 Mon Sep 17 00:00:00 2001 From: snowy Date: Sun, 26 May 2024 17:12:06 +0800 Subject: [PATCH] =?UTF-8?q?:memo:=20=E6=96=87=E6=A1=A3=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=89=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/README.md | 36 ++++++------------- liteyuki/liteyuki_main/loader.py | 1 - liteyuki/plugins/liteyuki_mctools/__init__.py | 3 +- 3 files changed, 13 insertions(+), 27 deletions(-) diff --git a/docs/README.md b/docs/README.md index 89d62c6..d806ff8 100644 --- a/docs/README.md +++ b/docs/README.md @@ -35,50 +35,36 @@ highlights: details: 拥有良好的生态支持 link: https://nonebot.dev/ - - title: 可视化插件管理 + - title: 便捷插件管理 icon: plug - details: 使用npm,无需命令行操作即可安装/卸载插件 + details: 使用包管理器,无需命令行操作即可安装/卸载插件 - - title: 点击交互 + - title: 人性化交互 icon: mouse-pointer details: 新的点击交互模式,拒绝手打指令 - title: 主题支持 icon: paint-brush - details: 支持多种主题,可自定义资源包,满足你的审美需求 + details: 使用资源包对外观进行完全自定义 link: https://bot.liteyuki.icu/usage/resource_pack.html - title: 国际化 icon: globe - details: 支持多种语言,包括i18n部分语言和自行扩展的语言代码 + details: 通过资源包支持多种语言 link: https://baike.baidu.com/item/i18n/6771940 - title: 简易配置 icon: cog - details: 无需过多配置,开箱即用 + details: 无需繁琐前期过程,开箱即用 link: https://bot.liteyuki.icu/deployment/config.html - - title: 低占用 - icon: memory - details: 使用更少的依赖和资源 + - title: 高性能 + icon: tachometer-alt + details: 500个插件,3s内启动 - - title: OneBot标准 - icon: link - details: 支持OneBotv11/12标准的四种通信协议 - link: https://onebot.dev/ - - - title: Alconna命令解析 - icon: link - details: 使用Alconna实现高效命令解析 - link: https://github.com/nonebot/plugin-alconna - - - title: 便捷更新 + - title: 滚动更新 icon: cloud-download - details: 聊天窗口命令更新,无需手动下载 - - - title: 服务支持 - icon: server - details: 内置轻雪API,可自动收集错误,提供图床服务 + details: 让你的机器人保持最新提交 - title: 开源 icon: code diff --git a/liteyuki/liteyuki_main/loader.py b/liteyuki/liteyuki_main/loader.py index 11a4ba4..8b253e8 100644 --- a/liteyuki/liteyuki_main/loader.py +++ b/liteyuki/liteyuki_main/loader.py @@ -18,7 +18,6 @@ async def load_plugins(): # 从数据库读取已安装的插件 if not get_config("safe_mode", False): # 安全模式下,不加载插件 - installed_plugins: list[InstalledPlugin] = plugin_db.where_all(InstalledPlugin()) if installed_plugins: for installed_plugin in installed_plugins: diff --git a/liteyuki/plugins/liteyuki_mctools/__init__.py b/liteyuki/plugins/liteyuki_mctools/__init__.py index d861e8b..dece472 100644 --- a/liteyuki/plugins/liteyuki_mctools/__init__.py +++ b/liteyuki/plugins/liteyuki_mctools/__init__.py @@ -1,4 +1,5 @@ from nonebot.plugin import PluginMetadata +from nonebot import get_driver __plugin_meta__ = PluginMetadata( name="Minecraft工具箱", @@ -11,4 +12,4 @@ __plugin_meta__ = PluginMetadata( "toggleable" : True, "default_enable": True, } -) +) \ No newline at end of file