test
This commit is contained in:
parent
6ea2d1a329
commit
1df109712c
5
bot.go
5
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,
|
||||
|
Loading…
Reference in New Issue
Block a user