From 027ff17b13dc81b94aa23b08ea9f6b12ca96f401 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Sun, 29 Dec 2024 20:24:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dbym=E5=8F=91=E7=8E=B0?= =?UTF-8?q?=E7=9A=84bymbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/bym.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/bym.js b/apps/bym.js index 6a73551..208aa18 100644 --- a/apps/bym.js +++ b/apps/bym.js @@ -68,7 +68,7 @@ export class bym extends plugin { let card = e.sender.card || e.sender.nickname let group = e.group_id let prop = Math.floor(Math.random() * 100) - if (e.msg?.includes(Config.assistantLabel)) { + if (Config.assistantLabel && e.msg?.includes(Config.assistantLabel)) { prop = prop / 100 } if (e.msg?.endsWith('?')) {