mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
fix: 自动切换关注模式
[issue]只会在当前抽的uid或tag切换 一旦这个号抽另一个tag了就又换回了关注模式
This commit is contained in:
parent
43132031c9
commit
78bfd5a470
@ -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);
|
||||
|
||||
4
main.js
4
main.js
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user