test
This commit is contained in:
parent
a0e304b67d
commit
437380c2f6
4
rules.go
4
rules.go
@ -57,7 +57,7 @@ func resetMsgParsingRules() error {
|
|||||||
r = MessageParsingRule{
|
r = MessageParsingRule{
|
||||||
Priority: 9998,
|
Priority: 9998,
|
||||||
Description: fmt.Sprintf("Specific item craft %s", o.Code),
|
Description: fmt.Sprintf("Specific item craft %s", o.Code),
|
||||||
Rule: fmt.Sprintf("^(?P<Cmd1>%s)( (?P<Quantity>[0-9]+){0,1}$", regexp.QuoteMeta(o.Craft.Command)),
|
Rule: fmt.Sprintf("^(?P<Cmd>%s)(( )+(?P<Quantity>[0-9]+)){0,1}$", regexp.QuoteMeta(o.Craft.Command)),
|
||||||
MsgTypeID64: cacheObjSubType[`msg_bot_craft_item`],
|
MsgTypeID64: cacheObjSubType[`msg_bot_craft_item`],
|
||||||
ChatID64: cfg.Bot.Mainchat,
|
ChatID64: cfg.Bot.Mainchat,
|
||||||
SenderUserID64: 0,
|
SenderUserID64: 0,
|
||||||
@ -66,7 +66,7 @@ func resetMsgParsingRules() error {
|
|||||||
r = MessageParsingRule{
|
r = MessageParsingRule{
|
||||||
Priority: 9998,
|
Priority: 9998,
|
||||||
Description: fmt.Sprintf("Specific item craft %s", o.Code),
|
Description: fmt.Sprintf("Specific item craft %s", o.Code),
|
||||||
Rule: fmt.Sprintf("^(?P<Cmd2>%s)( (?P<Quantity>[0-9]+){0,1}$", regexp.QuoteMeta(o.Craft.Command)),
|
Rule: fmt.Sprintf("^(?P<Cmd>%s)(( )+(?P<Quantity>[0-9]+)){0,1}$", regexp.QuoteMeta(o.Craft.Command)),
|
||||||
MsgTypeID64: cacheObjSubType[`msg_bot_craft_item`],
|
MsgTypeID64: cacheObjSubType[`msg_bot_craft_item`],
|
||||||
ChatID64: cfg.Bot.Admin,
|
ChatID64: cfg.Bot.Admin,
|
||||||
SenderUserID64: cfg.Bot.Admin,
|
SenderUserID64: cfg.Bot.Admin,
|
||||||
|
Loading…
Reference in New Issue
Block a user