Documentation
¶
Index ¶
Constants ¶
View Source
const ( PluginID = "channel/qq" RuntimeName = "bot" )
Variables ¶
This section is empty.
Functions ¶
func DecodeConfig ¶
func DecodeConfig(raw map[string]any) (pkgchannel.QQConfig, error)
func NewQQManagedRuntime ¶
func NewQQManagedRuntime(deps QQRuntimeDeps) pkgplugins.Runtime
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
Bot wraps a QQ bot with agent pool integration. It implements channel.Channel.
type Config ¶
type Config struct {
InstanceID string
AppID string
AppSecret string
GroupMode string // "mention" | "always" | "disabled"
}
Config holds QQ Bot settings.
type QQRuntimeDeps ¶
type QQRuntimeDeps struct {
Parent context.Context
Handler pkgchannel.Handler
Notifications pkgplugins.ChannelRegistry
Log *slog.Logger
Now func() time.Time
NewChannel func(pkgchannel.QQConfig, pkgchannel.Handler) (pkgchannel.Channel, error)
}
Click to show internal directories.
Click to hide internal directories.