This commit is contained in:
shoopea 2021-01-21 16:32:53 +01:00
parent 9b4c646b5d
commit 075c7d801f

2
bot.go
View File

@ -866,6 +866,8 @@ func botBrewItem(m *ChatWarsMessage, r *regexp.Regexp) {
p.ObjItemID64, err = getCraftItemID(r.ReplaceAllString(m.Text, "${Code}"))
logOnError(err, "botBrewItem : getCraftItemID")
fmt.Printf("Code[%s] : %d\n", r.ReplaceAllString(m.Text, "${Code}"), p.ObjItemID64)
b, _ := json.Marshal(p)
t := time.Now().UTC().Add(1 * time.Second)
_, err = createJob(cacheObjSubType[`job_brew_item`], objJobPriority, m.TGSenderUserID64, 0, t, b)