fix:让麦麦回复功能正常工作,输出一堆调戏信息

This commit is contained in:
SengokuCola
2025-03-29 19:13:32 +08:00
parent 6dbee3dc56
commit 2e0d358d93
11 changed files with 360 additions and 319 deletions

View File

@@ -5,15 +5,12 @@ from ..config.config import global_config
from .mode_classical import WillingManager as ClassicalWillingManager
from .mode_dynamic import WillingManager as DynamicWillingManager
from .mode_custom import WillingManager as CustomWillingManager
from src.common.logger import LogConfig
from src.common.logger import LogConfig, WILLING_STYLE_CONFIG
willing_config = LogConfig(
console_format=(
"<green>{time:YYYY-MM-DD HH:mm:ss}</green> | "
"<level>{level: <8}</level> | "
"<red>{extra[module]: <12}</red> | "
"<level>{message}</level>"
),
# 使用消息发送专用样式
console_format=WILLING_STYLE_CONFIG["console_format"],
file_format=WILLING_STYLE_CONFIG["file_format"],
)
logger = get_module_logger("willing", config=willing_config)