Skip to content

Commit 4d40074

Browse files
committed
Fix hilichurl cronjob not being initialized properly
1 parent 86ab73d commit 4d40074

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

crons/hilichurl/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ module.exports = {
1515

1616
const accounts = app.HoyoLab.getActiveAccounts({ whitelist: "genshin" });
1717
if (accounts.length === 0) {
18+
app.Logger.debug("Cron:Hilichurl", "No active Genshin accounts found");
1819
return;
1920
}
2021

@@ -26,9 +27,12 @@ module.exports = {
2627

2728
for (const account of accounts) {
2829
if (account.hilichurl?.check === false) {
30+
app.Logger.debug("Cron:Hilichurl", `(${account.uid}) Hilichurl check disabled, skipping`);
2931
continue;
3032
}
3133

34+
app.Logger.info("Cron:Hilichurl", `(${account.uid}) Running Hilichurl automation...`);
35+
3236
try {
3337
const result = await platform.hilichurl(account);
3438
if (!result.success) {

hoyolab-modules/template.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ module.exports = class HoyoLab {
178178
stamina,
179179
expedition,
180180
mimo: account.mimo,
181+
hilichurl: account.hilichurl,
181182
discord: account.discord ?? null
182183
});
183184
}

0 commit comments

Comments
 (0)