mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-07-22 21:13:47 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
31e8941415 | ||
|
|
f329457c9a | ||
|
|
0eddee4f15 | ||
|
|
ce2c9e58dd | ||
|
|
f1bbc9d1da |
@@ -1,5 +1,13 @@
|
||||
<!-- markdownlint-disable MD036 MD024-->
|
||||
# CHANGELOG
|
||||
## 主要变化(2.5.4)
|
||||
* f329457 fix: 评论包含敏感词(#150)
|
||||
* 0eddee4 Merge pull request #147 from spiritLHLS/patch-1
|
||||
* ce2c9e5 Update README.md
|
||||
* f1bbc9d Update README.md
|
||||
|
||||
_如果之前版本小于上一版本,请查看[CHANGELOG](CHANGELOG.md)变更说明_
|
||||
|
||||
## 主要变化(2.5.3)
|
||||
* 22e4d2a fix: 转发了不含关键词的抽奖动态(#136)
|
||||
* 354d8cf fix: 推送异常(#132)
|
||||
|
||||
@@ -303,6 +303,6 @@ $ tree
|
||||
## Awesome
|
||||
相关项目
|
||||
|
||||
- [LotteryAutoScript_Station](https://github.com/spiritLHL/LotteryAutoScript_Station) - [@spiritLHL](https://github.com/spiritLHL)
|
||||
- [sync_lottery](https://github.com/spiritLHL/sync_lottery) - [@spiritLHL](https://github.com/spiritLHL)
|
||||
- [BDSF](https://github.com/spiritLHL/BDSF) - [@spiritLHL](https://github.com/spiritLHL)
|
||||
- [LotteryAutoScript_Station](https://github.com/spiritLHLS/LotteryAutoScript_Station) - [@spiritLHL](https://github.com/spiritLHLS)
|
||||
- [sync_lottery](https://github.com/spiritLHLS/sync_lottery) - [@spiritLHL](https://github.com/spiritLHLS)
|
||||
- [BDSF](https://github.com/spiritLHLS/BDSF) - [@spiritLHL](https://github.com/spiritLHLS)
|
||||
|
||||
@@ -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
|
||||
|
||||
+5
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "lottery-auto-script",
|
||||
"version": "2.5.3",
|
||||
"version": "2.5.4",
|
||||
"description": "自动参与B站动态抽奖",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user