This commit is contained in:
shoopea 2020-06-27 11:46:18 +02:00
parent 22c8b0b452
commit 6a9d4da46d

2
msg.go
View File

@ -630,7 +630,7 @@ func parseSubTypeMessageTimeAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWars
cwm.Year, _ = strconv.ParseInt(r.ReplaceAllString(m.Text, "${Year}"), 10, 64) cwm.Year, _ = strconv.ParseInt(r.ReplaceAllString(m.Text, "${Year}"), 10, 64)
cwm.Weather = r.ReplaceAllString(m.Text, "${Weather}") cwm.Weather = r.ReplaceAllString(m.Text, "${Weather}")
cwm.WeatherNext = r.ReplaceAllString(m.Text, "${WeatherNext}") cwm.WeatherNext = r.ReplaceAllString(m.Text, "${WeatherNext}")
log.Printf("parseSubTypeMessageTimeAck : %v", cwm.RealTime) log.Printf("parseSubTypeMessageTimeAck : %v", time.Now.UTC().Sub(cwm.RealTime))
return &cwm, nil return &cwm, nil
} }