From 9146ffbb1ac2c112fe83e96d7b83c85c84f81078 Mon Sep 17 00:00:00 2001 From: baby20162016 <2185823427@qq.com> Date: Thu, 1 Jan 2026 01:22:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9echo.py=E4=B8=AD=E7=9A=84hand?= =?UTF-8?q?le=5Fecho=E5=87=BD=E6=95=B0=EF=BC=8C=E5=A2=9E=E5=8A=A0=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E6=B3=A8=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base_plugins/echo.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/base_plugins/echo.py b/base_plugins/echo.py index 28e287c..5a18575 100644 --- a/base_plugins/echo.py +++ b/base_plugins/echo.py @@ -1,9 +1,12 @@ from core.command_manager import matcher +from ..core.ws import WS +from ..models.event import Event + # TODO 把该死的这些给抽象化 @matcher.command("echo") -async def handle_echo(bot, event, args): +async def handle_echo(bot: WS, event: Event, args: list[str]): if not args: reply_msg = "请在指令后输入要回复的内容,例如:/echo 你好" else: