From 37a73e0e91bb96e3fc0d2e17b7bdda0d572ce03f Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 9 Feb 2020 16:18:32 +0800 Subject: [PATCH] test --- msg.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/msg.go b/msg.go index 37df9d8..7b9ca3c 100644 --- a/msg.go +++ b/msg.go @@ -175,15 +175,15 @@ func parseSubTypeMessageStockAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWar func parseSubTypeMessageReportAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWarsMessageReportAck, error) { cwm := ChatWarsMessageReportAck{} - log.Printf("parseSubTypeMessageReport : Extra : %s\n", r.ReplaceAllString(m.Text, "${Extra}")) + // log.Printf("parseSubTypeMessageReport : Extra : %s\n", r.ReplaceAllString(m.Text, "${Extra}")) re := regexp.MustCompile(`((?PYour battle cries were successful)|(You were outplayed by (?P.*))|(?PđŸ”‹Stamina restored)|.+)`) for i, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Extra}"), -1) { if len(re.ReplaceAllString(l[0], "${Cry}")) != 0 { - log.Printf("parseSubTypeMessageReport : Extra[%d] : Cry\n", i) + // log.Printf("parseSubTypeMessageReport : Extra[%d] : Cry\n", i) } else if len(re.ReplaceAllString(l[0], "${Outplayer}")) != 0 { - log.Printf("parseSubTypeMessageReport : Extra[%d] : Outplayer\n", i) + // log.Printf("parseSubTypeMessageReport : Extra[%d] : Outplayer\n", i) } else if len(re.ReplaceAllString(l[0], "${Stamina}")) != 0 { - log.Printf("parseSubTypeMessageReport : Extra[%d] : Stamina\n", i) + // log.Printf("parseSubTypeMessageReport : Extra[%d] : Stamina\n", i) } else { log.Printf("parseSubTypeMessageReport : Extra[%d] : %s\n", i, l[0]) }