This commit is contained in:
shoopea 2021-01-21 15:05:17 +01:00
parent 78a322ba7a
commit fb95402aa0
2 changed files with 2 additions and 2 deletions

2
job.go
View File

@ -2255,7 +2255,7 @@ func jobBrewItem(j Job) {
eta = "0m" eta = "0m"
} }
out = fmt.Sprintf("<a href=\"https://t.me/share/url?url=/brew_%s %d\">%3s - %20s - %3d</a>", o.Code, maxManaItems, o.Code, o.Names[0], maxManaItems[i]) out = fmt.Sprintf("<a href=\"https://t.me/share/url?url=/brew_%s %d\">%3s - %20s - %3d</a>", o.Code, maxManaItems, o.Code, o.Names[0], maxManaItems)
c := TGCommand{ c := TGCommand{
Type: commandReplyMsg, Type: commandReplyMsg,

View File

@ -224,7 +224,7 @@ func resetMsgParsingRules() error {
r = MessageParsingRule{ r = MessageParsingRule{
Priority: 9998, Priority: 9998,
Description: fmt.Sprintf("Specific item brew %s", o.Code), Description: fmt.Sprintf("Specific item brew %s", o.Code),
Rule: fmt.Sprintf("^\/alch_(?P<Code>%s)$", regexp.QuoteMeta(o.Code)), Rule: fmt.Sprintf("^\//alch_(?P<Code>%s)$", regexp.QuoteMeta(o.Code)),
MsgTypeID64: cacheObjSubType[`msg_bot_brew_item`], MsgTypeID64: cacheObjSubType[`msg_bot_brew_item`],
ChatID64: 0, ChatID64: 0,
SenderUserID64: users[id], SenderUserID64: users[id],