def reward(self): for key, value in self.config.config['Reward'].items(): print(f'{key} = {value}') logger.hr('Reward Settings saved') from module.reward.reward import Reward az = Reward(self.config) az.reward_loop()
def daily(self): """ Method to run daily missions. """ from module.reward.reward import Reward az = Reward(self.config, device=self.device) az.daily_wrapper_run() self.reward_when_finished()
def daily(self): """ Method to run daily missions. """ flag = True if self.config.ENABLE_DAILY_MISSION: from module.daily.daily import Daily az = Daily(self.config) if not az.record_executed_since(): az.run() az.record_save() flag = True if self.config.ENABLE_HARD_CAMPAIGN: from module.hard.hard import CampaignHard az = CampaignHard(self.config) if not az.record_executed_since(): az.run() az.record_save() flag = True if self.config.ENABLE_EXERCISE: from module.exercise.exercise import Exercise az = Exercise(self.config) if not az.record_executed_since(): az.run() az.record_save() flag = True if flag: from module.reward.reward import Reward az = Reward(self.config) az.reward()
def emulator(self): for key, value in self.config.config['Emulator'].items(): print(f'{key} = {value}') logger.hr('Emulator saved') from module.handler.login import LoginHandler az = LoginHandler(self.config) if az.app_ensure_start(): from module.reward.reward import Reward az = Reward(self.config) az.reward()
def emulator(self): for key, value in self.config.config['Emulator'].items(): if key == 'github_token': print(f'{key} = {"<sensitive_infomation>"}') else: print(f'{key} = {value}') logger.hr('Emulator saved') self.update_check() from module.handler.login import LoginHandler az = LoginHandler(self.config, device=self.device) if az.app_ensure_start(): from module.reward.reward import Reward az = Reward(self.config, device=self.device) az.reward() else: az.device.screenshot()
def reward_when_finished(self): from module.reward.reward import Reward az = Reward(self.config, device=self.device) az.reward_loop() self.update_check()
def reward_when_finished(self): from module.reward.reward import Reward az = Reward(self.config) az.reward_loop()
def reward(self): from module.reward.reward import Reward Reward(config=self.config, device=self.device).run()