Documentation ¶
Index ¶
- type Bot
- func (bot *Bot) AttachChannel(channel_name string) (*model.Channel, error)
- func (bot *Bot) Close()
- func (bot *Bot) GetPostLink(post *model.Post) string
- func (bot *Bot) GetPostThread(postId string) (*model.PostList, error)
- func (bot *Bot) ListenChannel(channel_name string) (*model.Channel, <-chan PostNotification, error)
- func (bot *Bot) ListenPersonals() <-chan PostNotification
- func (bot *Bot) SendMessageToChannel(channel *model.Channel, message string, props model.StringInterface) (*model.Post, error)
- func (bot *Bot) SendPost(post *model.Post) (*model.Post, error)
- func (bot *Bot) SendSpoofedMessageToChannel(name string) error
- func (bot *Bot) UpdateChannelHeader(channel *model.Channel, header string) error
- type PostNotification
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
}
func (*Bot) AttachChannel ¶
Like ListenChannel, but doesn't listen; only prepares for transmission.
func (*Bot) ListenChannel ¶
func (*Bot) ListenPersonals ¶
func (bot *Bot) ListenPersonals() <-chan PostNotification
func (*Bot) SendMessageToChannel ¶
func (*Bot) SendSpoofedMessageToChannel ¶
Click to show internal directories.
Click to hide internal directories.