update craft item

This commit is contained in:
shoopea 2020-01-27 12:29:09 +08:00
parent 2fcac1d2d7
commit c287d6e3f3

View File

@ -66,7 +66,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<Cmd>%s)( (?P<Quantity>[0-9]+){0,1}$", o.Craft.Command),
MsgTypeID64: cacheObjSubType[`msg_bot_craft_item`],
ChatID64: cfg.Bot.Admin,
SenderUserID64: cfg.Bot.Admin,