From 09ffd2c54abf7d4754f2ce8ec1fff15adea72e20 Mon Sep 17 00:00:00 2001 From: yeyang <746659424@qq.com> Date: Mon, 10 Oct 2022 01:40:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0#=E7=BE=A4=E6=98=9F=E7=BA=A7?= =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assistant.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/assistant.js b/apps/assistant.js index 05aec75..1039924 100644 --- a/apps/assistant.js +++ b/apps/assistant.js @@ -686,9 +686,10 @@ export class example extends plugin { } async Group_xj(e) { - if (e.isPrivate) return e.reply("请在群聊使用哦~") + if (!e.isMaster && !e.member.is_owner && !e.member.is_admin) return e.reply("❎ 该命令仅限管理员可用", true); + let ck = getck("qqweb.qq.com") let url = `http://xiaobai.klizi.cn/API/qqgn/qun_xj.php?data=&uin=${Bot.uin}&skey=${ck.skey}&pskey=${ck.p_skey}&group=${e.group_id}`