Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 5 commits into from
Mar 5, 2023

Conversation

crazywhalecc
Copy link
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