From 9c9bc18a443929081d22ff12f3dce9fda0f6d81b Mon Sep 17 00:00:00 2001 From: shanmite Date: Sun, 12 Feb 2023 15:27:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=20=E6=9F=A5=E8=AF=A2=E8=AF=84=E8=AE=BA?= =?UTF-8?q?=E6=8A=A5=E9=94=99=20(#250)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed #250 --- lib/core/monitor.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/core/monitor.js b/lib/core/monitor.js index 79b8db8..5e49a5d 100644 --- a/lib/core/monitor.js +++ b/lib/core/monitor.js @@ -601,12 +601,11 @@ class Monitor extends Searcher { const copy_chat = getRandomOne( (await bili.getChat(rid, chat_type)) .filter(it => !(new RegExp(copy_blockword.join('|')).test(it[1]))) - ); + ) || [";;;;;;;;;", chat || "!!!"]; chat = copy_chat[1] .replace( new RegExp(copy_chat[0], 'g'), global_var.get("myUNAME") || '') - || "!!!" } status = await retryfn(