test
This commit is contained in:
parent
7219be55c3
commit
96ef468f74
16
bot.go
16
bot.go
@ -940,15 +940,13 @@ func botGWithdraw(m *tb.Message) {
|
|||||||
items := []ChatWarsItems{}
|
items := []ChatWarsItems{}
|
||||||
for _, l := range rx.FindAllStringSubmatch(m.Payload, -1) {
|
for _, l := range rx.FindAllStringSubmatch(m.Payload, -1) {
|
||||||
log.Printf("botGWithdraw : %v\n", l)
|
log.Printf("botGWithdraw : %v\n", l)
|
||||||
/*
|
i := r.ReplaceAllString(l[0], "${Item}")
|
||||||
i := r.ReplaceAllString(l, "${Item}")
|
q, _ := strconv.ParseInt(r.ReplaceAllString(l[0], "${Quantity}"), 10, 64)
|
||||||
q, _ := strconv.ParseInt(r.ReplaceAllString(l, "${Quantity}"), 10, 64)
|
item := ChatWarsItems{
|
||||||
item := ChatWarsItems{
|
Item: i,
|
||||||
Item: i,
|
Quantity: q,
|
||||||
Quantity: q,
|
}
|
||||||
}
|
items = append(items, item)
|
||||||
items = append(items, item)
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
p.Request = items
|
p.Request = items
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user