Closed matlockx closed 7 years ago
An example would be:
func main() { .... slack.Run(kb.Token, messageFilter) } func messageFilter(message string, sender *bot.User) (string, slack.PostMessageParameters) { p := slack.PostMessageParameters{AsUser: true} p.Attachments = []slack.Attachment{{ Color: "good", Text: message, AuthorName: sender.RealName, },} return "", p }
An example would be: