Documentation ¶ Index ¶ type Adapter type Chat type ChatType type Commands func NewCommands(bot *joe.Bot) *Commands func (c *Commands) Handle(command string, chat *Chat) type Server func NewServer(adapter Adapter, messenger messenger.Manager) (*Server, error) func (b *Server) Run(addr string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Adapter ¶ type Adapter interface { Name() string Adapter() joe.Module GetHandler(bot *joe.Bot) any GetFunMap() template.FuncMap } type Chat ¶ type Chat struct { Provider string Channel string ChatID string ChatType ChatType } type ChatType ¶ type ChatType int const ( ChatTypeP2P ChatType = iota + 1 ChatTypeGroup ChatTypeChannel ) type Commands ¶ type Commands struct { // contains filtered or unexported fields } func NewCommands ¶ func NewCommands(bot *joe.Bot) *Commands func (*Commands) Handle ¶ func (c *Commands) Handle(command string, chat *Chat) type Server ¶ type Server struct { // contains filtered or unexported fields } func NewServer ¶ func NewServer(adapter Adapter, messenger messenger.Manager) (*Server, error) func (*Server) Run ¶ func (b *Server) Run(addr string) error Source Files ¶ View all Source files bot.go commands.go types.go Click to show internal directories. Click to hide internal directories.