From 99f36fca16d00451a0767441c894cfa51b070f44 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 25 Jun 2025 05:53:49 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20=E8=87=AA=E5=8A=A8=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96=E4=BB=A3=E7=A0=81=20[skip=20ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugin_system/apis/send_api.py | 8 ++++++-- src/plugin_system/base/base_action.py | 2 +- src/plugin_system/base/base_command.py | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/plugin_system/apis/send_api.py b/src/plugin_system/apis/send_api.py index 00b1581d4..fdf793f14 100644 --- a/src/plugin_system/apis/send_api.py +++ b/src/plugin_system/apis/send_api.py @@ -284,7 +284,9 @@ async def image_to_stream(image_base64: str, stream_id: str, storage_message: bo return await _send_to_target("image", image_base64, stream_id, "", typing=False, storage_message=storage_message) -async def command_to_stream(command: Union[str, dict], stream_id: str, storage_message: bool = True, display_message: str = "") -> bool: +async def command_to_stream( + command: Union[str, dict], stream_id: str, storage_message: bool = True, display_message: str = "" +) -> bool: """向指定流发送命令 Args: @@ -295,7 +297,9 @@ async def command_to_stream(command: Union[str, dict], stream_id: str, storage_m Returns: bool: 是否发送成功 """ - return await _send_to_target("command", command, stream_id, display_message, typing=False, storage_message=storage_message) + return await _send_to_target( + "command", command, stream_id, display_message, typing=False, storage_message=storage_message + ) async def custom_to_stream( diff --git a/src/plugin_system/base/base_action.py b/src/plugin_system/base/base_action.py index e049cd51c..a68091b96 100644 --- a/src/plugin_system/base/base_action.py +++ b/src/plugin_system/base/base_action.py @@ -322,7 +322,7 @@ class BaseAction(ABC): command=command_data, stream_id=self.chat_id, storage_message=storage_message, - display_message=display_message + display_message=display_message, ) if success: diff --git a/src/plugin_system/base/base_command.py b/src/plugin_system/base/base_command.py index 0a4b16072..8977c5e70 100644 --- a/src/plugin_system/base/base_command.py +++ b/src/plugin_system/base/base_command.py @@ -162,7 +162,7 @@ class BaseCommand(ABC): command=command_data, stream_id=chat_stream.stream_id, storage_message=storage_message, - display_message=display_message + display_message=display_message, ) if success: