fix
This commit is contained in:
parent
fb95402aa0
commit
0922621b5d
4
rules.go
4
rules.go
@ -221,10 +221,10 @@ func resetMsgParsingRules() error {
|
||||
muxObjItem.RLock()
|
||||
for _, o := range objItems {
|
||||
if o.Craft != nil && o.ItemTypeID == cacheObjSubType[`item_misc`] && len(o.Craft.Command) > 6 && o.Craft.Command[0:5] == "/brew_" {
|
||||
r = MessageParsingRule{
|
||||
r = MessageParsingRule{
|
||||
Priority: 9998,
|
||||
Description: fmt.Sprintf("Specific item brew %s", o.Code),
|
||||
Rule: fmt.Sprintf("^\//alch_(?P<Code>%s)$", regexp.QuoteMeta(o.Code)),
|
||||
Rule: fmt.Sprintf("^\\/alch_(?P<Code>%s)$", regexp.QuoteMeta(o.Code)),
|
||||
MsgTypeID64: cacheObjSubType[`msg_bot_brew_item`],
|
||||
ChatID64: 0,
|
||||
SenderUserID64: users[id],
|
||||
|
Loading…
Reference in New Issue
Block a user