Skip to content

重构 OneBot 适配器,新增 BotMap 等机器人对照表特性 - #328

Merged
crazywhalecc merged 5 commits into
mainfrom
refactor-onebot-adapter
Mar 5, 2023
Merged

crazywhalecc merged 5 commits into
mainfrom
refactor-onebot-adapter

Conversation

@crazywhalecc

Copy link
Copy Markdown
Member
  • 新增 BotMap,用于记录连接 fd、flag 和机器人的 ID、平台之间的关系表
  • 新增全局函数 ws_socket() 用户获取 WebSocket 服务器向客户端发送数据包的 Socket 操作对象
  • 删除不必要的连接池关闭特性(可能以后需要,但目前的状态下 Swoole 驱动模式在 workerStop 事件内调用会报错)

@crazywhalecc crazywhalecc added the improvement 对于现有代码或逻辑的改进 label Mar 5, 2023
@crazywhalecc
crazywhalecc requested a review from sunxyw March 5, 2023 06:42
@crazywhalecc
crazywhalecc merged commit f1adbf1 into main Mar 5, 2023
@crazywhalecc
crazywhalecc deleted the refactor-onebot-adapter branch March 5, 2023 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement 对于现有代码或逻辑的改进

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants