This commit is contained in:
shoopea 2020-01-05 17:45:34 +08:00
parent 96ef468f74
commit 571295b330

2
bot.go
View File

@ -939,7 +939,7 @@ func botGWithdraw(m *tb.Message) {
}
items := []ChatWarsItems{}
for _, l := range rx.FindAllStringSubmatch(m.Payload, -1) {
log.Printf("botGWithdraw : %v\n", l)
log.Printf("botGWithdraw : %s\n", l[0])
i := r.ReplaceAllString(l[0], "${Item}")
q, _ := strconv.ParseInt(r.ReplaceAllString(l[0], "${Quantity}"), 10, 64)
item := ChatWarsItems{