refactor(qq_onebot): replace all http handler with a brand new websocket handler, seperate with msg recver
Build / ubuntu-latest (push) Failing after 3m8s
Build / windows-latest (push) Failing after 56m41s

This commit is contained in:
NanamiAdmin committed 2026-10-11 15:28:19 +08:00
1 parent ba0d8539b3
commit 0c581abc4c
6 files changed
+640 -166

No files matched your search

+3 -1
View File
@@ -49,7 +49,8 @@ func (q *QQController) Name() string {
return "qq_onebot"
}
// Start initializes the QQ controller and starts the NapCat WebSocket listener.
// Start initializes the QQ controller and starts the OneBot WebSocket listeners
// (the event socket and the API socket the client manages internally).
func (q *QQController) Start() error {
if !q.cfg.Enabled {
// postLog.Info("QQ (Napcat) controller is disabled")
@@ -208,6 +209,7 @@ func (q *QQController) processCommand(cmd controller.Command) string {
postLog.Error("[qq_onebot] OneBot command processing failed: " + err.Error())
return ""
}
// postLog.Debug("[qq_onebot] processCommand.resp: " + response)
return response
}