diff --git a/rules.go b/rules.go index 92afbf4..2506b70 100644 --- a/rules.go +++ b/rules.go @@ -57,7 +57,7 @@ func resetMsgParsingRules() error { r = MessageParsingRule{ Priority: 9998, Description: fmt.Sprintf("Specific item craft %s", o.Code), - Rule: fmt.Sprintf("^%s$", o.Craft.Command), + Rule: fmt.Sprintf("^(?P%s)( (?P[0-9]+){0,1}$", regexp.QuoteMeta(o.Craft.Command)), MsgTypeID64: cacheObjSubType[`msg_bot_craft_item`], ChatID64: cfg.Bot.Mainchat, SenderUserID64: 0,