update
This commit is contained in:
parent
58d46f6d46
commit
6c1a99870a
2
msg.go
2
msg.go
@ -277,7 +277,7 @@ func parseSubTypeMessageGStockAnyAck(m *ChatWarsMessage, r *regexp.Regexp) (*Cha
|
|||||||
|
|
||||||
func parseSubTypeMessageTributesStatsAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWarsMessageTributesStatsAck, error) {
|
func parseSubTypeMessageTributesStatsAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWarsMessageTributesStatsAck, error) {
|
||||||
cwm := ChatWarsMessageTributesStatsAck{}
|
cwm := ChatWarsMessageTributesStatsAck{}
|
||||||
tribute := []ChatWarsTribute{}
|
tribute := ChatWarsTribute{}
|
||||||
re := regexp.MustCompile(`((?P<Date>[1-9]{2} [a-zA-Z]+ [0-9]{4} [0-9]{2}:[0-9]{2}) - (?P<Item>[a-zA-Z]+) x (?P<Quantity>[0-9]+), (?P<Exp>[0-9]+)🔥(\n){0,1})`)
|
re := regexp.MustCompile(`((?P<Date>[1-9]{2} [a-zA-Z]+ [0-9]{4} [0-9]{2}:[0-9]{2}) - (?P<Item>[a-zA-Z]+) x (?P<Quantity>[0-9]+), (?P<Exp>[0-9]+)🔥(\n){0,1})`)
|
||||||
for _, l := range re.FindAllStringSubmatch(m.Text, -1) {
|
for _, l := range re.FindAllStringSubmatch(m.Text, -1) {
|
||||||
log.Printf("parseSubTypeMessageTributesStatsAck : Date : %s\n", r.ReplaceAllString(l[0], "${Date}"))
|
log.Printf("parseSubTypeMessageTributesStatsAck : Date : %s\n", r.ReplaceAllString(l[0], "${Date}"))
|
||||||
|
Loading…
Reference in New Issue
Block a user