This commit is contained in:
shoopea 2021-01-21 15:06:46 +01:00
parent fb95402aa0
commit 0922621b5d

View File

@ -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],