feat:生成器可用多消息模式

This commit is contained in:
SengokuCola
2026-04-03 13:43:49 +08:00
parent aea87e18f1
commit 6e6aa0b13a
8 changed files with 505 additions and 14 deletions

View File

@@ -0,0 +1,21 @@
from typing import Type
from src.config.config import global_config
def get_maisaka_replyer_class() -> Type[object]:
"""根据配置返回 Maisaka replyer 类。"""
generator_type = global_config.maisaka.replyer_generator_type
if generator_type == "multi":
from .maisaka_generator_multi import MaisakaReplyGenerator
return MaisakaReplyGenerator
from .maisaka_generator import MaisakaReplyGenerator
return MaisakaReplyGenerator
def get_maisaka_replyer_generator_type() -> str:
"""返回当前配置的 Maisaka replyer 生成器类型。"""
return global_config.maisaka.replyer_generator_type