From 29bf439288a42a8b6b85a6c50905b059f3e327c4 Mon Sep 17 00:00:00 2001 From: shanmite Date: Tue, 23 Aug 2022 12:40:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=AD=E9=80=94=E6=8E=89=E5=8F=B7?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E6=9C=AA=E7=99=BB=E5=BD=95(#179)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed #179 --- lib/core/monitor.js | 2 ++ lib/net/bili.js | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/lib/core/monitor.js b/lib/core/monitor.js index 7f5ddd8..33564a8 100644 --- a/lib/core/monitor.js +++ b/lib/core/monitor.js @@ -183,6 +183,7 @@ class Monitor extends Searcher { case 1007: case 1008: case 1009: + case 1010: case 2002: case 2003: case 4001: @@ -530,6 +531,7 @@ class Monitor extends Searcher { * - 评论 UP主已关闭评论区 1007 * - 评论 内容包含敏感信息 1008 * - 评论 重复评论 1009 + * - 评论 帐号未登录 1010 * - 关注 未知错误 2001 * - 关注 您已被对方拉入黑名单 2002 * - 关注 黑名单用户无法关注 2003 diff --git a/lib/net/bili.js b/lib/net/bili.js index 10886f2..12cf998 100644 --- a/lib/net/bili.js +++ b/lib/net/bili.js @@ -992,6 +992,7 @@ const bili_client = { * - UP主已关闭评论区 7 * - 评论内容包含敏感信息 8 * - 重复评论 9 + * - 帐号未登录 10 */ async sendChat(rid, msg, type) { const @@ -1033,6 +1034,9 @@ const bili_client = { case 12051: log.error('自动评论', '重复评论'); return 9; + case -101: + log.error('自动评论', '帐号未登录'); + return 10; default: log.error('自动评论', `未知错误\n${responseText}`); return 1;