feat(cross-platform): 添加跨平台功能支持及配置优化
- 新增跨平台配置模型和全局配置支持 - 优化 Discord 适配器的连接管理和错误处理 - 添加 watchdog 和 discord.py 依赖 - 创建 DeepSeek API 配置文档 - 移除重复的同步帮助图片代码 - 改进跨平台插件配置加载逻辑
This commit is contained in:
5
main.py
5
main.py
@@ -120,16 +120,11 @@ async def main():
|
||||
# 同步帮助图片
|
||||
await matcher.sync_help_pic()
|
||||
|
||||
# 同步帮助图片
|
||||
await matcher.sync_help_pic()
|
||||
|
||||
# 初始化权限管理器(包含了管理员管理功能)
|
||||
await permission_manager.initialize()
|
||||
|
||||
# 初始化浏览器管理器 (使用页面池)
|
||||
await browser_manager.init_pool(size=3)
|
||||
|
||||
# 启动反向 WebSocket 服务端(如果启用)
|
||||
if config.reverse_ws.enabled:
|
||||
logger.info("正在启动反向 WebSocket 服务端...")
|
||||
asyncio.create_task(reverse_ws_manager.start(
|
||||
|
||||
Reference in New Issue
Block a user