diff --git a/msg.go b/msg.go index 32d6a2a..0aadd68 100644 --- a/msg.go +++ b/msg.go @@ -1,6 +1,7 @@ package main import ( + "encoding/json" "fmt" "log" "regexp" @@ -48,6 +49,8 @@ func parseSubTypeMessageAuctionAnnounce(m *ChatWarsMessage, r *regexp.Regexp) (* cwm.Price = int32(p) cwm.Status = r.ReplaceAllString(m.Text, "${Status}") cwm.End, _ = fromChatWarsDate(r.ReplaceAllString(m.Text, "${End}")) + b, _ := json.Marshal(cwm) + fmt.Printf("%s\n", string(b)) return &cwm, nil }