diff --git a/lib/core/monitor.js b/lib/core/monitor.js index ffbf806..7f5ddd8 100644 --- a/lib/core/monitor.js +++ b/lib/core/monitor.js @@ -182,6 +182,7 @@ class Monitor extends Searcher { case 1006: case 1007: case 1008: + case 1009: case 2002: case 2003: case 4001: @@ -528,6 +529,7 @@ class Monitor extends Searcher { * - 评论 黑名单用户无法互动 1006 * - 评论 UP主已关闭评论区 1007 * - 评论 内容包含敏感信息 1008 + * - 评论 重复评论 1009 * - 关注 未知错误 2001 * - 关注 您已被对方拉入黑名单 2002 * - 关注 黑名单用户无法关注 2003 @@ -567,10 +569,11 @@ class Monitor extends Searcher { ) ) - if (status === 8) { + if (status === 8 || + status === 9) { status = await bili.sendChat( rid, - "[doge]", + "[doge][doge][doge][doge][doge]", chat_type ) } diff --git a/lib/net/bili.js b/lib/net/bili.js index 2dfaa13..10886f2 100644 --- a/lib/net/bili.js +++ b/lib/net/bili.js @@ -991,6 +991,7 @@ const bili_client = { * - 黑名单用户无法互动 6 * - UP主已关闭评论区 7 * - 评论内容包含敏感信息 8 + * - 重复评论 9 */ async sendChat(rid, msg, type) { const @@ -1029,6 +1030,9 @@ const bili_client = { case 12016: log.error('自动评论', '评论内容包含敏感信息'); return 8; + case 12051: + log.error('自动评论', '重复评论'); + return 9; default: log.error('自动评论', `未知错误\n${responseText}`); return 1;