mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
parent
0eddee4f15
commit
f329457c9a
@ -545,6 +545,14 @@ class Monitor extends Searcher {
|
||||
)
|
||||
)
|
||||
|
||||
if (status === 8) {
|
||||
status = await bili.sendChat(
|
||||
rid,
|
||||
"[doge]",
|
||||
chat_type
|
||||
)
|
||||
}
|
||||
|
||||
if (status) {
|
||||
log.warn("抽奖信息", `dyid: ${dyid}, rid: ${rid}, chat_type: ${chat_type}`)
|
||||
return 1000 + status
|
||||
|
||||
@ -951,6 +951,7 @@ const bili_client = {
|
||||
* - 已被对方拉入黑名单 5
|
||||
* - 黑名单用户无法互动 6
|
||||
* - UP主已关闭评论区 7
|
||||
* - 评论内容包含敏感信息 8
|
||||
*/
|
||||
async sendChat(rid, msg, type) {
|
||||
const
|
||||
@ -966,7 +967,7 @@ const bili_client = {
|
||||
res = strToJson(responseText);
|
||||
switch (res.code) {
|
||||
case 0:
|
||||
log.info('自动评论', '评论成功');
|
||||
log.info('自动评论', `评论成功: ${msg}`);
|
||||
return 0;
|
||||
case -404:
|
||||
log.error('自动评论', '原动态已删除');
|
||||
@ -986,6 +987,9 @@ const bili_client = {
|
||||
case 12061:
|
||||
log.error('自动评论', 'UP主已关闭评论区');
|
||||
return 7;
|
||||
case 12016:
|
||||
log.error('自动评论', '评论内容包含敏感信息');
|
||||
return 8;
|
||||
default:
|
||||
log.error('自动评论', `未知错误\n${responseText}`);
|
||||
return 1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user