add line message command , not fin

This commit is contained in:
Jay
2018-09-15 00:01:36 +08:00
parent a83ff3a0df
commit e954afe80b
9 changed files with 333 additions and 11 deletions
+3 -2
View File
@@ -2,6 +2,7 @@ package linemsg
import (
lineobj "git.trj.tw/golang/mtfosbot/module/line-message/line-object"
msgcmd "git.trj.tw/golang/mtfosbot/module/message-command"
)
func messageType(e *lineobj.EventObject) {
@@ -31,8 +32,8 @@ func textMsg(e *lineobj.EventObject) {
// group action
if e.Source.Type == "group" {
if _, ok := mtxt.(string); ok {
if txt, ok := mtxt.(string); ok {
msgcmd.ParseLineMsg(txt, e.ReplyToken, e.Source)
}
}
return