refactor(qq_onebot): replace all http handler with a brand new websocket handler, seperate with msg recver
This commit is contained in:
1 parent
ba0d8539b3
commit
0c581abc4c
6 files changed
+640
-166
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user