From 5bd39473a02b601ecb70d1e8cff46e5ee777599e Mon Sep 17 00:00:00 2001 From: misaka20002 <40714502+misaka20002@users.noreply.github.com> Date: Fri, 13 Jun 2025 00:20:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BD=93=20bot=20=E6=98=AF=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=91=98=E6=97=B6=EF=BC=8C=E5=8F=AA=E6=9C=89=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=98=AF=E7=AE=A1=E7=90=86=E5=91=98=E6=88=96=E4=B8=BB?= =?UTF-8?q?=E4=BA=BA=E6=89=8D=E7=BB=99=E7=A6=81=E8=A8=80=E3=80=81=E8=B8=A2?= =?UTF-8?q?=E4=BA=BA=E7=AD=89=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/core.js b/model/core.js index c4fd061..a84c409 100644 --- a/model/core.js +++ b/model/core.js @@ -826,7 +826,7 @@ async function collectTools (e) { let systemAddition = '' if (e.isGroup) { let botInfo = await e.bot?.pickMember?.(e.group_id, getUin(e)) || await e.bot?.getGroupMemberInfo?.(e.group_id, getUin(e)) - if (botInfo.role !== 'member') { + if (botInfo.role !== 'member' && (e.isMaster || e.sender.role !== 'member')) { // 管理员才给这些工具 tools.push(...[new EditCardTool(), new JinyanTool(), new KickOutTool(), new HandleMessageMsgTool(), new SetTitleTool()]) // 用于撤回和加精的id