add line message command , not fin

This commit is contained in:
root committed 2018-09-15 00:01:36 +08:00
1 parent a83ff3a0df
commit e954afe80b
9 files changed
+333 -11

No files matched your search

+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