helperbot/cmd/helpers.go

15 lines
222 B
Go
Raw Normal View History

2019-11-13 00:45:56 +00:00
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 ""
}