1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-09 18:39:04 +08:00
AzurLaneAutoScript/module/daemon/game_manager.py

18 lines
457 B
Python
Raw Normal View History

2021-12-12 16:42:22 +08:00
from module.handler.login import LoginHandler
from module.logger import logger
class GameManager(LoginHandler):
def run(self):
2021-12-12 16:42:22 +08:00
logger.hr('Force Stop AzurLane', level=1)
self.device.app_stop()
logger.info('Force Stop finished')
if self.config.GameManager_AutoRestart:
self.device.app_start()
self.handle_app_login()
2021-12-12 16:42:22 +08:00
if __name__ == '__main__':
GameManager('alas', task='GameManager').run()