helperbot/cmd/helpers.go
2019-11-12 18:45:56 -06:00

15 lines
222 B
Go

package main
import (
"encoding/json"
slack "git.bullercodeworks.com/brian/go-slack"
)
func GetMessageJson(msg *slack.Message) string {
if mb, me := json.Marshal(msg); me == nil {
return string(mb)
}
return ""
}