From 1df109712c95c68a189033806a248d074ba94545 Mon Sep 17 00:00:00 2001 From: shoopea Date: Mon, 27 Jan 2020 12:39:16 +0800 Subject: [PATCH] test --- bot.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bot.go b/bot.go index 9cbb3f4..996c4a3 100644 --- a/bot.go +++ b/bot.go @@ -725,7 +725,10 @@ func botCraftItem(m *ChatWarsMessage) { ChatID64: m.ChatID64, Status: 0, } - p.ObjItemID64, err = getCraftItemID(m.Text) + p.ObjItemID64, err = getCraftItemID(r.ReplaceAllString(m.Text, "${Cmd}")) + logOnError(err, "botCraftItem : getCraftItemID") + p.Quantity, err = strconv.ParseInt(r.ReplaceAllString(m.Text, "${Quantity}"), 10, 64) + logOnError(err, "botCraftItem : ParseInt") if err != nil { c := TGCommand{ Type: commandReplyMsg,