Documentation ¶
Index ¶
- func Start(conf *config.Config, quit, done chan bool) error
- type Bot
- func (b *Bot) FindChannel(name, teamID string) (*model.Channel, error)
- func (b *Bot) FindChannelWithTeam(name string) (*model.Channel, error)
- func (b *Bot) FindTeam(name string) (*model.Team, error)
- func (b *Bot) RegisterEventHandler(h EventHandler, channelId string, eventTypes ...string)
- func (b *Bot) SendMsgTeamChannel(name, msg string) error
- type EventHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bot ¶
type Bot struct { UserID string // contains filtered or unexported fields }
func (*Bot) FindChannelWithTeam ¶
func (*Bot) RegisterEventHandler ¶
func (b *Bot) RegisterEventHandler(h EventHandler, channelId string, eventTypes ...string)
func (*Bot) SendMsgTeamChannel ¶
type EventHandler ¶
type EventHandler func(event *model.WebSocketEvent)
Click to show internal directories.
Click to hide internal directories.