Documentation ¶
Index ¶
- type Bot
- func (b *Bot) AddPlugin(p Plugin)
- func (b *Bot) AddReaction(name, channel, timestamp string) error
- func (b *Bot) BotID() string
- func (b *Bot) DoActionPlugins(event EventInfo) bool
- func (b *Bot) GetClient() *slack.Client
- func (b *Bot) PostMessage(text, channel string)
- func (b *Bot) PostMessageToThread(text, channel, ts string)
- func (b *Bot) ReplyMessage(text, user, channel string)
- func (b *Bot) ReplyMessageToThread(text, user, channel, ts string)
- func (b *Bot) SetLogger(l *log.Logger)
- func (b *Bot) Start()
- func (b *Bot) Stop()
- type BotInfo
- type EventInfo
- type Plugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
A Bot represents a bot client.
func (*Bot) AddReaction ¶
AddReaction adds a reaction to the message.
func (*Bot) DoActionPlugins ¶
DoActionPlugins calls DoAction of plugins.
func (*Bot) PostMessage ¶
PostMessage posts the text to the channnel.
func (*Bot) PostMessageToThread ¶
PostMessageToThread posts the text to the channnel.
func (*Bot) ReplyMessage ¶
ReplyMessage replies the text to the user.
func (*Bot) ReplyMessageToThread ¶
ReplyMessageToThread replies the text to the user.
type BotInfo ¶
type BotInfo interface { DoActionPlugins(event EventInfo) bool BotID() string PostMessage(text, channel string) PostMessageToThread(text, channel, ts string) ReplyMessage(text, user, channel string) AddReaction(name, channel, timestamp string) error GetClient() *slack.Client }
A BotInfo represents bot information.
Click to show internal directories.
Click to hide internal directories.