From 53bd95085c818d5382dc738c8ddbdbd73ea3e23d Mon Sep 17 00:00:00 2001 From: yeyang <746659424@qq.com> Date: Mon, 10 Oct 2022 20:14:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=BE=E7=BD=AE=E7=A7=81?= =?UTF-8?q?=E8=81=8Acd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/setu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/setu.js b/apps/setu.js index 5261464..debd45f 100644 --- a/apps/setu.js +++ b/apps/setu.js @@ -197,14 +197,14 @@ export class sese extends plugin { //单独设置私聊cd async atcd(e) { + if (e.message[0].type != "at") return; + if (!e.isGroup) return e.reply("请在群聊使用此指令"); if (!e.isMaster) return e.reply("❎ 该命令仅限管理员可用", true); this.file(); - if (e.message[0].type != "at") return; - let cd = e.msg.match(/[0-9]\d*/g) let qq = e.message[0].qq