From bdb42d085e798d5d4f1f1a5f95f8f4590d9b626a Mon Sep 17 00:00:00 2001 From: UnCLAS-Prommer Date: Wed, 28 May 2025 12:52:39 +0800 Subject: [PATCH] accept format update --- pyproject.toml | 2 +- src/recv_handler.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 52a98e2..3cf0553 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "MaiBotNapcatAdapter" -version = "0.2.4" +version = "0.2.5" description = "A MaiBot adapter for Napcat" [tool.ruff] diff --git a/src/recv_handler.py b/src/recv_handler.py index 09e1229..4d5c397 100644 --- a/src/recv_handler.py +++ b/src/recv_handler.py @@ -111,7 +111,7 @@ class RecvHandler: template_info: TemplateInfo = None # 模板信息,暂时为空,等待启用 format_info: FormatInfo = FormatInfo( content_format=["text", "image", "emoji"], - accept_format=["text", "image", "emoji", "reply", "voice"], + accept_format=["text", "image", "emoji", "reply", "voice", "command"], ) # 格式化信息 if message_type == MessageType.private: sub_type = raw_message.get("sub_type")