From 0c610701cb1e1cf8615b5233a2c14239a6517b74 Mon Sep 17 00:00:00 2001 From: shanmite Date: Sat, 25 Nov 2023 10:42:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AF=84=E8=AE=BA=E5=B9=B6=E8=BD=AC?= =?UTF-8?q?=E5=8F=91=20(#259)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed #259 --- lib/core/monitor.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/core/monitor.js b/lib/core/monitor.js index 9cd96c5..9ee722f 100644 --- a/lib/core/monitor.js +++ b/lib/core/monitor.js @@ -603,7 +603,7 @@ class Monitor extends Searcher { [4], () => bili.sendChatWithOcr( rid, - is_repost_then_chat ? relay_chat.split('//')[0] : chat, + chat, chat_type ) ) @@ -671,7 +671,10 @@ class Monitor extends Searcher { status = await retryfn( 5, [3, 4], - () => bili.autoRelay(global_var.get("myUID"), dyid, relay_chat, ctrl) + () => bili.autoRelay( + global_var.get("myUID"), dyid, + is_repost_then_chat ? chat + relay_chat : relay_chat + , ctrl) ) if (status) {