1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2026-06-10 02:34:51 +00:00

feat(momotalk): add a single tool page for momotalk,

remove its scheduler,
and some minor improvements
This commit is contained in:
2025-10-13 11:39:43 +08:00
parent 02b8de6d18
commit 3cd8161afb
14 changed files with 103 additions and 75 deletions
+6 -1
View File
@@ -6,11 +6,12 @@ from multiprocessing import Process
from typing import Dict, List, Union
from filelock import FileLock
from rich.console import Console, ConsoleRenderable
from module.config.utils import filepath_config
from module.logger import logger, set_file_logger, set_func_logger
from module.webui.fake import get_config_mod, mod_instance
from module.webui.setting import State
from rich.console import Console, ConsoleRenderable
class ProcessManager:
@@ -147,6 +148,10 @@ class ProcessManager:
if e is not None:
AzurLaneAutoScript.stop_event = e
ArisuAutoSweeper(config_name=config_name).loop()
elif func == "Momotalk":
from tasks.momotalk.momotalk import MomoTalk
MomoTalk(config=config_name, task="Momotalk").run()
else:
logger.critical(f"No function matched: {func}")
logger.info(f"[{config_name}] exited. Reason: Finish\n")