Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BotAdaptor ¶
type BotAdaptor struct { botplug.BaseConfig Token string NotificationMode string ChannelIDs []string // contains filtered or unexported fields }
func New ¶
func New(logger *logrus.Logger, token, channelIDsStr, notificationMode string) (*BotAdaptor, error)
func (*BotAdaptor) SendTextMessageToChannels ¶
func (sender *BotAdaptor) SendTextMessageToChannels(text string) (err error)
SendTextMessage is pkg/botplug.BotSender interface's implementation
func (*BotAdaptor) WithPlugin ¶
func (bot *BotAdaptor) WithPlugin(plugin botplug.BotPlugin) *BotAdaptor
Click to show internal directories.
Click to hide internal directories.