test
This commit is contained in:
parent
7e3d051e44
commit
10a0631ecb
4
msg.go
4
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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user