This commit is contained in:
shoopea 2020-01-27 12:39:16 +08:00
parent 6ea2d1a329
commit 1df109712c

5
bot.go
View File

@ -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,