Versions in this module Expand all Collapse all v0 v0.1.0 Jun 24, 2026 Changes in this version + func Drivers() []string + func OnCommand(name string, h Handler) + func OnMessage(h Handler) + func ParseCommand(text string) (cmd string, args []string, ok bool) + func RegisterDriver(name string, f DriverFactory) + type Bot interface + Send func(ctx context.Context, channel, msg string) error + Start func(ctx context.Context) error + Stop func() error + type DriverFactory func(k *togo.Kernel, dispatch func(context.Context, Message)) (Bot, error) + type Handler func(ctx context.Context, b *Service, m Message) (string, error) + type Message struct + Args []string + Channel string + Command string + IsCommand bool + Platform string + Raw map[string]any + Text string + User string + Username string + type Service struct + func FromKernel(k *togo.Kernel) (*Service, bool) + func (s *Service) Bot() Bot + func (s *Service) Dispatch(ctx context.Context, m Message) + func (s *Service) Driver() string + func (s *Service) Send(ctx context.Context, channel, msg string) error