Skip to content

Commit 8bd9b98

Browse files
committed
refactor config
1 parent c504b6a commit 8bd9b98

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

auto_daily.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
from autowsgr.scripts.daily_api import DailyOperation
21
from autowsgr.scripts.main import start_script
32

4-
53
timer = start_script('./user_settings.yaml')
6-
74
# 日常,可以实现日常出击,战役,演习等操作
8-
operation = DailyOperation(timer)
9-
operation.run()
5+
timer.run_daily_automation()

decisive_battle.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
from autowsgr.fight import DecisiveBattle
21
from autowsgr.scripts.main import start_script
32

4-
53
timer = start_script('./user_settings.yaml')
6-
7-
# 决战出击
8-
decisive_battle = DecisiveBattle(timer)
9-
decisive_battle.run_for_times(1) # 数字为决战出击的次数
4+
timer.run_decisive_battle(1) # 数字为决战出击的次数

0 commit comments

Comments
 (0)