This commit is contained in:
Jay Chen
2019-06-25 20:56:52 +08:00
parent d6f4d8d0b1
commit 27274019da
3 changed files with 5 additions and 0 deletions
+2
View File
@@ -2,12 +2,14 @@ package linemsg
import (
"fmt"
"log"
lineobj "git.trj.tw/golang/mtfosbot/module/line-message/line-object"
)
// MessageEvent -
func MessageEvent(botid string, e *lineobj.EventObject) {
log.Println("proc message evt :: ", botid, *e)
if len(botid) == 0 {
return
}
+1
View File
@@ -17,6 +17,7 @@ import (
)
func messageType(botid string, e *lineobj.EventObject) {
log.Println("proc msg type text :: ", botid)
msg := e.Message
mtype, ok := msg["type"]
if !ok {