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 }] }, {