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

20 lines
289 B
Go

package linemsg
import (
"fmt"
lineobj "git.trj.tw/golang/mtfosbot/module/line-message/line-object"
)
// MessageEvent -
func MessageEvent(e *lineobj.EventObject) {
switch e.Type {
case "message":
messageType(e)
break
default:
fmt.Println("line webhook type not match")
}
}