fix: 自动切换关注模式

[issue]只会在当前抽的uid或tag切换
一旦这个号抽另一个tag了就又换回了关注模式
This commit is contained in:
shanmite 2021-05-13 22:42:08 +08:00
parent 43132031c9
commit 78bfd5a470
2 changed files with 3 additions and 2 deletions

View File

@ -253,6 +253,7 @@ class Monitor extends Public {
status = await BiliAPI.autoAttention(uid)
if (status) {
this.isAttentionErr = true;
config.only_followed = '1';
break
}
await Base.delay(5000);

View File

@ -3,7 +3,7 @@ const { tooltip, delay } = require("./lib/Base");
try {
require("./env");
} catch (error) {
tooltip.log("无env.js文件");
tooltip.log("通过env.js设置环境变量失败 原因:\n" + error);
}
async function main() {
@ -50,7 +50,7 @@ async function main() {
}
}
} else {
tooltip.log('请查看README文件, 填入相应的PAT');
tooltip.log('请查看README文件, 填入相应的PAT, 若是本地运行则设LOCALLAUNCH=true');
}
}