Documentation
¶
Overview ¶
Package slack implements Slack handlers for github.com/go-chat-bot/bot
Index ¶
- func AddReactionToMessage(msgid, channel string, reaction string) error
- func FindUserBySlackID(userID string) *bot.User
- func RemoveReactionFromMessage(msgid, channel string, reaction string) error
- func Run(token string)
- func RunWithFilter(token string, customMessageFilter MessageFilter)
- type MessageFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddReactionToMessage ¶
AddReactionToMessage allows you to add a reaction, to a message.
func FindUserBySlackID ¶
FindUserBySlackID converts a slack.User into a bot.User struct
func RemoveReactionFromMessage ¶
RemoveReactionFromMessage allows you to remove a reaction, from a message.
func RunWithFilter ¶
func RunWithFilter(token string, customMessageFilter MessageFilter)
RunWithFilter executes the bot and sets up a message filter which will receive all the messages before they are sent to slack
Types ¶
type MessageFilter ¶
MessageFilter allows implementing a filter function to transform the messages before sending to the channel, it is run before the bot sends the message to slack
Click to show internal directories.
Click to hide internal directories.