Co-authored-by: hobbyistlabs-coder <267281733+hobbyistlabs-coder@users.noreply.github.com>
13 lines
262 B
Go
13 lines
262 B
Go
package onebot
|
|
|
|
import (
|
|
"jane/pkg/bus"
|
|
"jane/pkg/channels"
|
|
"jane/pkg/config"
|
|
)
|
|
|
|
func init() {
|
|
channels.RegisterFactory("onebot", func(cfg *config.Config, b *bus.MessageBus) (channels.Channel, error) {
|
|
return NewOneBotChannel(cfg.Channels.OneBot, b)
|
|
})
|
|
}
|