diff --git a/msg.go b/msg.go index 0aadd68..2f16d32 100644 --- a/msg.go +++ b/msg.go @@ -1,7 +1,6 @@ package main import ( - "encoding/json" "fmt" "log" "regexp" @@ -49,8 +48,7 @@ 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 }