From f685efd942cf2558608b04d38efef0f8113c01f9 Mon Sep 17 00:00:00 2001 From: Ctrlcvs <1509167646@qq.com> Date: Thu, 20 Oct 2022 08:48:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=87=AA=E5=8A=A8=E7=AD=BE?= =?UTF-8?q?=E5=88=B0=E6=8F=90=E7=A4=BA=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/sign.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/sign.js b/apps/sign.js index 05576c2..2b97348 100644 --- a/apps/sign.js +++ b/apps/sign.js @@ -44,8 +44,8 @@ export async function cloudSign(e){ return true; } const checkAuth = async function (e) { - if (!e.isMaster) { - e.reply(`只有主人才能命令我哦~ + if (!e?.isMaster&&e?.reply) { + e?.reply(`只有主人才能命令我哦~ (*/ω\*)`) return false } @@ -53,7 +53,7 @@ const checkAuth = async function (e) { } export async function signTask(e){ - if (!await checkAuth(e)) { + if (e&&!await checkAuth(e)) { return true; } let user = new User(e);