mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 17:29:04 +08:00
18 lines
587 B
Python
18 lines
587 B
Python
|
|
from module.handler.login import LoginHandler
|
||
|
|
from module.logger import logger
|
||
|
|
from module.gg_handler.gg_handler import GGHandler
|
||
|
|
|
||
|
|
|
||
|
|
class GameManager(LoginHandler):
|
||
|
|
def run(self):
|
||
|
|
logger.hr('Force Stop AzurLane', level=1)
|
||
|
|
self.device.app_stop()
|
||
|
|
logger.info('Force Stop finished')
|
||
|
|
GGHandler(config=self.config, device=self.device).check_config()
|
||
|
|
if self.config.GameManager_AutoRestart:
|
||
|
|
LoginHandler(config=self.config, device=self.device).app_restart()
|
||
|
|
|
||
|
|
|
||
|
|
if __name__ == '__main__':
|
||
|
|
GameManager('alas', task='GameManager').run()
|