feat: add hero rally reward automations

This commit is contained in:
admin committed 2026-10-04 22:12:14 +08:00
1 parent 7def63b3b9
commit c0406d5ef6
20 files changed
+113

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
import argparse, sys, time
from pathlib import Path
from automation.engine import Matcher, load_flow
from automation.offers import MacGameDesktop
from automation.hero_rally import LizhuTaskRunner
ROOT=Path(__file__).resolve().parent
def main():
p=argparse.ArgumentParser(description='英雄集结骊珠画卷:领取任务奖励'); p.add_argument('--dry-run',action='store_true'); a=p.parse_args()
if sys.platform!='darwin': return 2
try:
d=MacGameDesktop(); d.activate(); print('3 秒后开始;请保持游戏在前台。',flush=True); time.sleep(3)
LizhuTaskRunner(d,Matcher(ROOT/'assets'),load_flow(ROOT/'workflows/lizhu_task_claim.json'),d.region_for).run(a.dry_run); return 0
except Exception as e: print('流程停止:'+str(e),file=sys.stderr); return 1
if __name__=='__main__': raise SystemExit(main())