This commit is contained in:
shoopea 2020-02-01 15:19:19 +08:00
parent b70dff2700
commit 123479def5

View File

@ -50,6 +50,16 @@ func resetMsgParsingRules() error {
}
rules2 = append(rules2, r)
r = MessageParsingRule{
Priority: 9998,
Description: fmt.Sprintf("Specific item craft %s", o.Code),
Rule: "^/craft_all$",
MsgTypeID64: cacheObjSubType[`msg_bot_craft_all`],
ChatID64: cfg.Bot.Admin,
SenderUserID64: cfg.Bot.Admin,
}
rules2 = append(rules2, r)
muxObjItem.RLock()
defer muxObjItem.RUnlock()
for _, o := range objItems {