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