From e8b9e05a656c6cccd09461e5a4d14e073cce689c Mon Sep 17 00:00:00 2001 From: shanmiteko Date: Wed, 20 Oct 2021 16:14:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8E=A8=E9=80=81=E7=A9=BA=E6=B6=88?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/check.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/check.js b/lib/check.js index 5ccd7285b..ef880b283 100644 --- a/lib/check.js +++ b/lib/check.js @@ -17,9 +17,9 @@ async function isMe() { if (UnreadAtNum > 0) { log.info('中奖检测', '<-- 正在检查at'); const MyAtInfo = await bili.getMyAtInfo(); - desp += '## [at]检测结果\n\n' MyAtInfo.forEach(async AtInfo => { const { at_time, up_uname, business, source_content, url } = AtInfo + desp += '## [at]检测结果\n\n' desp += '----------------------------------------------------------------\n\n' desp += `发生时间: ${new Date(at_time * 1000).toLocaleString()}\n\n` desp += `用户: ${up_uname}\n\n` @@ -42,6 +42,7 @@ async function isMe() { bili.updateSessionStatus(talker_id, type, msg_seqno); await delay(update_session_wait); if (judge(content, notice_key_words)) { + desp += '## 私信检测结果\n\n' desp += '----------------------------------------------------------------\n\n' desp += `发生时间: ${new Date(timestamp * 1000).toLocaleString()}\n\n` desp += `用户: ${sender_uid}\n\n` @@ -59,7 +60,6 @@ async function isMe() { } } } - desp += '## 私信检测结果\n\n' if (follow_unread) { log.info('中奖检测', '<-- 正在检查已关注者的私信') await check(1)