From 636c5c7aaa12ebea044e8a49ae8d4f72db0419d5 Mon Sep 17 00:00:00 2001 From: yeyang <746659424@qq.com> Date: Mon, 17 Oct 2022 01:45:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9help?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assistant.js | 2 ++ config/system/help_system.js | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/apps/assistant.js b/apps/assistant.js index 4eb86d4..5e8d541 100644 --- a/apps/assistant.js +++ b/apps/assistant.js @@ -401,6 +401,8 @@ export class example extends plugin { }) let groupids = msgs[1].split(","); + //判断是否大于群数量 + if (groupids.every((item) => item > listMap.length)) return e.reply("❎ 超过群聊最大数") groupids.forEach((item) => { sendList.push(groupidList[Number(item) - 1]); diff --git a/config/system/help_system.js b/config/system/help_system.js index c452872..44dbb0e 100644 --- a/config/system/help_system.js +++ b/config/system/help_system.js @@ -115,6 +115,10 @@ export const helpList = [{ "title": "#清空留言", "desc": "一键清空留言", "icon": 19 + }, { + "title": "#开启|关闭戳一戳", + "desc": "QQ的戳一戳开关", + "icon": 5 }] }, {