diff --git a/msg.go b/msg.go index 02caa89..f1a7461 100644 --- a/msg.go +++ b/msg.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "log" + //"log" "regexp" "strconv" "strings" @@ -174,7 +174,7 @@ func parseSubTypeMessageGoQuestAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatW cwm.Quest = strings.ToLower(r.ReplaceAllString(m.Text, "${Place}")) i, err := strconv.ParseInt(r.ReplaceAllString(m.Text, "${Time}"), 10, 64) if err != nil { - cwm.Duration = i * time.Minute + cwm.Duration = time.Duration(i) * time.Minute } else { cwm.Duration = 0 * time.Minute }