From 12f793b59e1bf0bd98df735ea37fff16f972a0bc Mon Sep 17 00:00:00 2001 From: shoopea Date: Mon, 8 Jul 2019 18:33:24 +0800 Subject: [PATCH] test --- msg.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }