mtfosbot/module/line-message/message-event.go

20 lines
306 B
Go
Raw Normal View History

2018-09-13 10:18:59 +00:00
package linemsg
import (
"fmt"
lineobj "git.trj.tw/golang/mtfosbot/module/line-message/line-object"
"git.trj.tw/golang/mtfosbot/module/utils"
)
// MessageEvent -
func MessageEvent(e *lineobj.EventObject) {
fmt.Println(utils.ToMap(e))
switch e.Type {
case "message":
messageType(e)
break
}
}