From 032dc04083a7c7d0a86662567ba8bcf6015cf0c2 Mon Sep 17 00:00:00 2001 From: shoopea Date: Mon, 6 Jan 2020 12:07:42 +0800 Subject: [PATCH] debug --- msg.go | 1 + 1 file changed, 1 insertion(+) 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 }