mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 08:38:20 +08:00
AlasGG
This commit is contained in:
17
module/daemon/game_manager.py
Normal file
17
module/daemon/game_manager.py
Normal file
@@ -0,0 +1,17 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user