StarRailCopilot/tasks/freebies/freebies.py
X-Zero-L 315bc261bb
Add: Get Support Reward Everyday (#155)
* Add: Get Support Reward Everyday

* Upd: i18n

* Upd: Instead of using ocr, use template matching

* fix bug

* fix:  remove debug img

* Upd: Character (#157)

* Upd: character

* Upd: Character

---------

Co-authored-by: LmeSzinc <lmeszincsales@gmail.com>
2023-10-16 12:24:52 +08:00

14 lines
452 B
Python

from module.logger import logger
from module.base.base import ModuleBase
from tasks.freebies.support_reward import SupportReward
class Freebies(ModuleBase):
def run(self):
"""
Run all freebie tasks
"""
if self.config.SupportReward_Collect:
logger.hr('Support Reward')
SupportReward(config=self.config, device=self.device).run()
self.config.task_delay(server_update=True)