refactor(channels): add channel subpackages and update gateway imports

This commit is contained in:
Hoshina
2026-02-20 23:25:44 +08:00
parent 383687dc57
commit 36eb68dd67
31 changed files with 7651 additions and 3 deletions
+13
View File
@@ -0,0 +1,13 @@
package onebot
import (
"github.com/sipeed/picoclaw/pkg/bus"
"github.com/sipeed/picoclaw/pkg/channels"
"github.com/sipeed/picoclaw/pkg/config"
)
func init() {
channels.RegisterFactory("onebot", func(cfg *config.Config, b *bus.MessageBus) (channels.Channel, error) {
return NewOneBotChannel(cfg.Channels.OneBot, b)
})
}