20 lines
306 B
Go
20 lines
306 B
Go
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
|
|
}
|
|
}
|