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;