调整日志级别
This commit is contained in:
@@ -65,7 +65,7 @@ class AIAutoResponsePlugin(MessagePluginInterface):
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化插件"""
|
||||
self.LOG = logger
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
# 保存上下文对象
|
||||
self.event_system = context.get("event_system")
|
||||
|
||||
@@ -62,7 +62,7 @@ class AIGenImagePlugin(MessagePluginInterface):
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化插件"""
|
||||
self.LOG = logger
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
# 保存上下文对象
|
||||
self.event_system = context.get("event_system")
|
||||
@@ -85,7 +85,7 @@ class AIGenImagePlugin(MessagePluginInterface):
|
||||
'temp')
|
||||
os.makedirs(self.temp_dir, exist_ok=True)
|
||||
|
||||
self.LOG.info(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
self.LOG.debug(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
return True
|
||||
|
||||
def start(self) -> bool:
|
||||
|
||||
@@ -62,7 +62,7 @@ class BeautyLegPlugin(MessagePluginInterface):
|
||||
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化插件"""
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
# 保存上下文对象
|
||||
self.event_system = context.get("event_system")
|
||||
@@ -79,7 +79,7 @@ class BeautyLegPlugin(MessagePluginInterface):
|
||||
self.LOG.warning(f"图片文件夹不存在: {self.image_folder}")
|
||||
os.makedirs(self.image_folder, exist_ok=True)
|
||||
|
||||
self.LOG.info(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
self.LOG.debug(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
return True
|
||||
|
||||
def start(self) -> bool:
|
||||
|
||||
@@ -82,7 +82,7 @@ class DifyPlugin(MessagePluginInterface):
|
||||
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化插件"""
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
# 保存上下文对象
|
||||
self.event_system = context.get("event_system")
|
||||
@@ -100,7 +100,7 @@ class DifyPlugin(MessagePluginInterface):
|
||||
self.whitelist_ignore = dify_config.get("whitelist_ignore", False)
|
||||
self.http_proxy = dify_config.get("http-proxy", "")
|
||||
|
||||
self.LOG.info(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
self.LOG.debug(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
return True
|
||||
|
||||
def start(self) -> bool:
|
||||
|
||||
@@ -75,7 +75,7 @@ class DouyinParserPlugin(MessagePluginInterface):
|
||||
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化插件"""
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
# 保存上下文对象
|
||||
self.event_system = context.get("event_system")
|
||||
|
||||
@@ -57,7 +57,7 @@ class DuanjuSearchPlugin(MessagePluginInterface):
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化插件"""
|
||||
self.LOG = logger
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
# 保存上下文对象
|
||||
self.event_system = context.get("event_system")
|
||||
@@ -66,7 +66,7 @@ class DuanjuSearchPlugin(MessagePluginInterface):
|
||||
self.command_format = self._config.get("DuanjuSearch", {}).get("command-format", "短剧 剧名")
|
||||
self.enable = self._config.get("DuanjuSearch", {}).get("enable", True)
|
||||
self.api_url = self._config.get("DuanjuSearch", {}).get("api_url", "https://api.uuuka.com/api/search")
|
||||
self.LOG.info(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
self.LOG.debug(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
return True
|
||||
|
||||
def start(self) -> bool:
|
||||
|
||||
@@ -56,7 +56,7 @@ class FanhaoSearchPlugin(MessagePluginInterface):
|
||||
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
self.LOG = logger
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
self.event_system = context.get("event_system")
|
||||
|
||||
@@ -76,7 +76,7 @@ class FanhaoSearchPlugin(MessagePluginInterface):
|
||||
self.search_fields = cfg.get("search_fields", ["number"]) # 可能的字段名
|
||||
|
||||
# 延迟连接,在首次查询时连接,避免初始化阻塞
|
||||
self.LOG.info(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
self.LOG.debug(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
return True
|
||||
|
||||
def start(self) -> bool:
|
||||
|
||||
@@ -64,7 +64,7 @@ class GameTaskPlugin(MessagePluginInterface):
|
||||
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化插件"""
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
# 保存上下文对象
|
||||
self.event_system = context.get("event_system")
|
||||
@@ -90,7 +90,7 @@ class GameTaskPlugin(MessagePluginInterface):
|
||||
# 初始化数据库连接
|
||||
self.db_manager = DBConnectionManager.get_instance()
|
||||
self.encyclopedia_db = EncyclopediaDB(self.db_manager)
|
||||
self.LOG.info(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
self.LOG.debug(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
return True
|
||||
|
||||
def start(self) -> bool:
|
||||
|
||||
@@ -66,7 +66,7 @@ class GlobalNewsPlugin(MessagePluginInterface):
|
||||
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化插件"""
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
# 保存上下文对象
|
||||
self.event_system = context.get("event_system")
|
||||
@@ -78,7 +78,7 @@ class GlobalNewsPlugin(MessagePluginInterface):
|
||||
self.enable = self._config.get("GlobalNews", {}).get("enable", True)
|
||||
self._key = self._config.get("GlobalNews", {}).get("authorization", "")
|
||||
self._url = self._config.get("GlobalNews", {}).get("url", "")
|
||||
self.LOG.info(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
self.LOG.debug(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
return True
|
||||
|
||||
def start(self) -> bool:
|
||||
|
||||
@@ -60,7 +60,7 @@ class GroupAutoInvitePlugin(MessagePluginInterface):
|
||||
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化插件"""
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
# 获取Redis连接池
|
||||
self.redis_pool = context.get("redis_pool")
|
||||
@@ -71,7 +71,7 @@ class GroupAutoInvitePlugin(MessagePluginInterface):
|
||||
self.command_format = plugin_config.get("command-format", "#加群配置|help")
|
||||
self.enable = plugin_config.get("enable", True)
|
||||
|
||||
self.LOG.info(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
self.LOG.debug(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
return True
|
||||
|
||||
def start(self) -> bool:
|
||||
|
||||
@@ -54,7 +54,7 @@ class GroupMemberChangePlugin(MessagePluginInterface):
|
||||
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化插件"""
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
self.LOG.info(f"{self.name} 插件初始化完成")
|
||||
return True
|
||||
|
||||
@@ -59,7 +59,7 @@ class GroupVirtualPlugin(MessagePluginInterface):
|
||||
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化插件"""
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
# 保存上下文对象
|
||||
self.event_system = context.get("event_system")
|
||||
|
||||
@@ -125,7 +125,7 @@ class GuessSongPlugin(MessagePluginInterface):
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化插件"""
|
||||
self.LOG = logger
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
# 保存上下文对象
|
||||
self.event_system = context.get("event_system")
|
||||
@@ -158,7 +158,7 @@ class GuessSongPlugin(MessagePluginInterface):
|
||||
"王菲", "张惠妹", "孙燕姿", "蔡依林", "五月天"
|
||||
])
|
||||
|
||||
self.LOG.info(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
self.LOG.debug(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
return True
|
||||
|
||||
def start(self) -> bool:
|
||||
|
||||
@@ -197,7 +197,7 @@ class JDTokenPlugin(MessagePluginInterface):
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化插件"""
|
||||
self.LOG = logger
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
# 保存上下文对象
|
||||
self.event_system = context.get("event_system")
|
||||
@@ -215,7 +215,7 @@ class JDTokenPlugin(MessagePluginInterface):
|
||||
# 初始化青龙面板连接
|
||||
self.ql = QL(ql_host, client_id, client_secret)
|
||||
|
||||
self.LOG.info(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
self.LOG.debug(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
return True
|
||||
|
||||
def start(self) -> bool:
|
||||
|
||||
@@ -119,7 +119,7 @@ class LuckyPotPlugin(MessagePluginInterface):
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化插件"""
|
||||
self.LOG = logger
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
# 保存上下文对象
|
||||
self.event_system = context.get("event_system")
|
||||
@@ -145,7 +145,7 @@ class LuckyPotPlugin(MessagePluginInterface):
|
||||
# 玩家冷却时间 {user_id: timestamp}
|
||||
self.player_cooldowns = {}
|
||||
|
||||
self.LOG.info(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
self.LOG.debug(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
return True
|
||||
|
||||
def start(self) -> bool:
|
||||
|
||||
@@ -58,7 +58,7 @@ class MessagePushTask(MessagePluginInterface):
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化插件"""
|
||||
self.LOG = logger
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
# 保存上下文对象
|
||||
self.event_system = context.get("event_system")
|
||||
@@ -78,7 +78,7 @@ class MessagePushTask(MessagePluginInterface):
|
||||
self.command_format = self._config.get("MessagePush", {}).get("command-format", "推送 消息内容")
|
||||
self.enable = self._config.get("MessagePush", {}).get("enable", True)
|
||||
|
||||
self.LOG.info(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
self.LOG.debug(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
return True
|
||||
|
||||
def start(self) -> bool:
|
||||
|
||||
@@ -75,7 +75,7 @@ class MessageSignPlugin(MessagePluginInterface):
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化插件"""
|
||||
self.LOG = logger
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
# 保存上下文对象
|
||||
self.event_system = context.get("event_system")
|
||||
|
||||
@@ -62,7 +62,7 @@ class MusicPlugin(MessagePluginInterface):
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化插件"""
|
||||
self.LOG = logger
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
# 保存上下文对象
|
||||
self.event_system = context.get("event_system")
|
||||
@@ -71,7 +71,7 @@ class MusicPlugin(MessagePluginInterface):
|
||||
self.command_format = self._config.get("Music", {}).get("command-format", "点歌 歌曲名")
|
||||
self.enable = self._config.get("Music", {}).get("enable", True)
|
||||
self.music_api_url = self._config.get("Music", {}).get("music_api_url", "")
|
||||
self.LOG.info(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
self.LOG.debug(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
return True
|
||||
|
||||
def start(self) -> bool:
|
||||
|
||||
@@ -69,7 +69,7 @@ class PluginManagerPlugin(MessagePluginInterface):
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化插件"""
|
||||
self.LOG = logger
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
# 保存上下文对象
|
||||
self.event_system = context.get("event_system")
|
||||
@@ -78,7 +78,7 @@ class PluginManagerPlugin(MessagePluginInterface):
|
||||
self.command_format = self._config.get("PluginManager", {}).get("command-format", "插件 列表")
|
||||
self.enable = self._config.get("PluginManager", {}).get("enable", True)
|
||||
|
||||
self.LOG.info(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
self.LOG.debug(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
return True
|
||||
|
||||
def can_process(self, message: Dict[str, Any]) -> bool:
|
||||
|
||||
@@ -69,7 +69,7 @@ class PointTradePlugin(MessagePluginInterface):
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化插件"""
|
||||
self.LOG = logger
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
# 保存上下文对象
|
||||
self.event_system = context.get("event_system")
|
||||
@@ -112,7 +112,7 @@ class PointTradePlugin(MessagePluginInterface):
|
||||
# 打劫冷却记录 {wxid: last_rob_time}
|
||||
self.rob_cooldown_records = {}
|
||||
|
||||
self.LOG.info(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
self.LOG.debug(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
return True
|
||||
|
||||
def start(self) -> bool:
|
||||
|
||||
@@ -58,7 +58,7 @@ class RobotMenuPlugin(MessagePluginInterface):
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化插件"""
|
||||
self.LOG = logger
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
# 保存上下文对象
|
||||
self.event_system = context.get("event_system")
|
||||
@@ -68,7 +68,7 @@ class RobotMenuPlugin(MessagePluginInterface):
|
||||
self.command_format = self._config.get("RobotMenu", {}).get("command-format", "菜单 功能名")
|
||||
self.enable = self._config.get("RobotMenu", {}).get("enable", True)
|
||||
|
||||
self.LOG.info(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
self.LOG.debug(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
return True
|
||||
|
||||
def start(self) -> bool:
|
||||
|
||||
@@ -40,7 +40,7 @@ class StatsCollectorPlugin(PluginInterface):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.LOG = logger
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
# 默认配置
|
||||
self.config = {
|
||||
"enable": True,
|
||||
|
||||
@@ -61,7 +61,7 @@ class SystemUpdaterPlugin(MessagePluginInterface):
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化插件"""
|
||||
self.LOG = logger
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
# 保存上下文对象
|
||||
self.config = self._config
|
||||
@@ -74,7 +74,7 @@ class SystemUpdaterPlugin(MessagePluginInterface):
|
||||
self.admin_wxids = plugin_config.get("admin_wxids", [])
|
||||
self.enable = plugin_config.get("enable", True)
|
||||
|
||||
self.LOG.info(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
self.LOG.debug(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
return True
|
||||
|
||||
def start(self) -> bool:
|
||||
|
||||
@@ -67,7 +67,7 @@ class VideoPlugin(MessagePluginInterface):
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化插件"""
|
||||
self.LOG = logger
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
# 保存上下文对象
|
||||
self.gbm = context.get("gbm")
|
||||
|
||||
@@ -68,7 +68,7 @@ class VideoManPlugin(MessagePluginInterface):
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化插件"""
|
||||
self.LOG = logger
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
# 保存上下文对象
|
||||
self.event_system = context.get("event_system")
|
||||
@@ -82,7 +82,7 @@ class VideoManPlugin(MessagePluginInterface):
|
||||
if not os.path.exists(self.download_dir):
|
||||
os.makedirs(self.download_dir, exist_ok=True)
|
||||
|
||||
self.LOG.info(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
self.LOG.debug(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
return True
|
||||
|
||||
def start(self) -> bool:
|
||||
|
||||
@@ -121,7 +121,7 @@ class WeatherPlugin(MessagePluginInterface):
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化"""
|
||||
self.LOG = logger
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
# Redis 初始化
|
||||
self.db_manager = DBConnectionManager.get_instance()
|
||||
|
||||
@@ -68,7 +68,7 @@ class XiurenImagePlugin(MessagePluginInterface):
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化插件"""
|
||||
self.LOG = logger
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
# 保存上下文对象
|
||||
self.event_system = context.get("event_system")
|
||||
|
||||
@@ -236,7 +236,7 @@ class XiuxianPlugin(MessagePluginInterface):
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化插件:加载配置,接入 DB 与 Redis,并注册功能权限。"""
|
||||
self.LOG = logger
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
self.LOG.debug(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
self.event_system = context.get("event_system")
|
||||
self.db_manager = DBConnectionManager.get_instance()
|
||||
@@ -435,7 +435,7 @@ class XiuxianPlugin(MessagePluginInterface):
|
||||
self.LOG.warning(f"解析境界配置失败: {realm_name}={config_str}, 错误: {e}")
|
||||
|
||||
self.LOG.info(f"境界配置解析完成:层级阈值{len(self.layer_threshold_map)}个,突破配置{len(self.break_config)}个")
|
||||
self.LOG.info(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
self.LOG.debug(f"[{self.name}] 插件初始化完成,指令:{self._commands}")
|
||||
return True
|
||||
|
||||
def start(self) -> bool:
|
||||
|
||||
@@ -161,7 +161,7 @@ class GroupBotManager:
|
||||
"""从 Redis 加载数据到本地缓存"""
|
||||
group_list = r.smembers("group:list")
|
||||
# 输出group_list 列表
|
||||
logger.info(f"group_list: {group_list}")
|
||||
logger.debug(f"group_list: {group_list}")
|
||||
GroupBotManager.local_cache["group_list"] = set(group_list)
|
||||
|
||||
# 加载群组权限
|
||||
|
||||
@@ -64,7 +64,7 @@ class MessageStorage:
|
||||
# 确保图片存储目录存在
|
||||
if not os.path.exists(self.image_dir):
|
||||
os.makedirs(self.image_dir, exist_ok=True)
|
||||
logger.info(f"图片存储目录: {self.image_dir}")
|
||||
logger.debug(f"图片存储目录: {self.image_dir}")
|
||||
|
||||
def process_message(self, message: WxMessage):
|
||||
# 示例message字符串
|
||||
|
||||
Reference in New Issue
Block a user