diff --git a/msg.go b/msg.go index 0a2f29a..6e80cf8 100644 --- a/msg.go +++ b/msg.go @@ -13,6 +13,7 @@ func getMsgParsingRule(m *ChatWarsMessage) (*MessageParsingRule, error) { var i int for i = 0; i < len(msgParsingRules); i++ { if msgParsingRules[i].re.FindStringSubmatch(m.Text) != nil { + log.Printf("getMsgParsingRule : text matching with %s.\n", msgParsingRules[i].Description) if (msgParsingRules[i].ChatID64 == 0 || msgParsingRules[i].ChatID64 == m.ChatID64) && (msgParsingRules[i].SenderUserID64 == 0 || msgParsingRules[i].SenderUserID64 == m.TGSenderUserID64) { break }