2018-09-13 10:18:59 +00:00
|
|
|
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
|
2018-09-20 17:14:08 +00:00
|
|
|
default:
|
|
|
|
fmt.Println("line webhook type not match")
|
2018-09-13 10:18:59 +00:00
|
|
|
}
|
|
|
|
}
|