From d7f97ac3eeaef643c77e39e8a96ba3978eac3c25 Mon Sep 17 00:00:00 2001 From: SlyAimer <2289782085@qq.com> Date: Thu, 10 Apr 2025 17:17:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(chat):=20=E6=B7=BB=E5=8A=A0=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E5=90=8D=E7=A7=B0=E8=BE=93=E5=85=A5=E9=95=BF=E5=BA=A6?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/chat.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/chat.py b/src/plugins/chat.py index 9993c5d..48ee9a6 100644 --- a/src/plugins/chat.py +++ b/src/plugins/chat.py @@ -74,6 +74,8 @@ async def handle_function(message: MessageEvent): if not await GroupChatRole.get_admin_list(group_openid, member_openid): await t2.finish("您没有权限使用此功能。") value = message.get_plaintext().strip().split() + if len(value) < 2: + await t2.finish("请输入命令和角色名称,格式为:命令 角色名称") action, role_name = value[0], value[1] if action == "/删除人设": result = await ChatRole.delete_role(role_name)