update rules for objSubTypeMessageOrderbookAck
This commit is contained in:
parent
e0adbcae87
commit
5bdf17fb6e
15
rules.go
15
rules.go
@ -73,8 +73,19 @@ func resetMsgParsingRules() {
|
||||
,(5000, ` + strconv.Itoa(objSubTypeMessagePledge) + `, "Pledge", "^/pledge$")
|
||||
,(5000, ` + strconv.Itoa(objSubTypeMessageBuyReq) + `, "Buy request", "^/wtb_(?P<Item>[0-9]+)(_(?P<Quantity>[0-9]+)){0,1}$")
|
||||
,(5000, ` + strconv.Itoa(objSubTypeMessageSellReq) + `, "Sell request", "^/wts_(?P<Item>[0-9]+)(_(?P<Quantity>[0-9]+)(_(?P<Price>[0-9]+)){0,1}){0,1}$")
|
||||
,(5000, ` + strconv.Itoa(objSubTypeMessageOrderbookReq) + `, "Orderbook request", "^/t_(?P<Item>[0-9]+)$")
|
||||
,(5000, ` + strconv.Itoa(objSubTypeMessageOrderbookAck) + `, "Orderbook request", "^$")
|
||||
,(5000, ` + strconv.Itoa(objSubTypeMessageOrderbookReq) + `, "Orderbook request", "^/t_(?P<Code>[0-9]+)$")
|
||||
,(5000, ` + strconv.Itoa(objSubTypeMessageOrderbookAck) + `, "Orderbook request", "^(?P<Name>[a-zA-Z ]+) offers now:\\n` +
|
||||
`(?P<Qty1>[0-9]+) pcs for (?P<Price1>[0-9]+)💰\\n` +
|
||||
`(?P<Qty2>[0-9]+) pcs for (?P<Price2>[0-9]+)💰\\n` +
|
||||
`(?P<Qty3>[0-9]+) pcs for (?P<Price3>[0-9]+)💰\\n` +
|
||||
`.*Buy:\\n` +
|
||||
`Buy 1: /wtb_(?P<Code>[0-9]+)\\n` +
|
||||
`Buy 5: /wtb_[0-9]+_5\\n\n` +
|
||||
`You have (?P<Gold>[0-9]+)💰 and (?P<Qty>[0-9]+) [a-zA-Z ]*\\n` +
|
||||
`.*Sell:\\n` +
|
||||
`Sell 1 quickly: /wts_[0-9]+\\n` +
|
||||
`Sell 5 quickly: /wts_[0-9]+_5\\n\n` +
|
||||
`Sell 10 for [0-9]+💰 each: /wts_[0-9]+_10_[0-9]+$")
|
||||
,(5000, ` + strconv.Itoa(objSubTypeMessageWithdrawReq) + `, "Withdraw Req", "^/g_withdraw( )+(?P<Item1>[a-z0-9]+)( )+(?P<Quantity1>[0-9]+)` +
|
||||
`(( )+(?P<Item2>[a-z0-9]+)( )+(?P<Quantity2>[0-9]+)){0,1}` +
|
||||
`(( )+(?P<Item3>[a-z0-9]+)( )+(?P<Quantity3>[0-9]+)){0,1}` +
|
||||
|
Loading…
Reference in New Issue
Block a user