test
This commit is contained in:
parent
b70dff2700
commit
123479def5
10
rules.go
10
rules.go
|
@ -50,6 +50,16 @@ func resetMsgParsingRules() error {
|
||||||
}
|
}
|
||||||
rules2 = append(rules2, r)
|
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()
|
muxObjItem.RLock()
|
||||||
defer muxObjItem.RUnlock()
|
defer muxObjItem.RUnlock()
|
||||||
for _, o := range objItems {
|
for _, o := range objItems {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user