From fb95402aa0201bd402e3b70c5df7944e4c8579aa Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 21 Jan 2021 15:05:17 +0100 Subject: [PATCH] fix --- job.go | 2 +- rules.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/job.go b/job.go index 026f73f..852b884 100644 --- a/job.go +++ b/job.go @@ -2255,7 +2255,7 @@ func jobBrewItem(j Job) { eta = "0m" } - out = fmt.Sprintf("%3s - %20s - %3d", o.Code, maxManaItems, o.Code, o.Names[0], maxManaItems[i]) + out = fmt.Sprintf("%3s - %20s - %3d", o.Code, maxManaItems, o.Code, o.Names[0], maxManaItems) c := TGCommand{ Type: commandReplyMsg, diff --git a/rules.go b/rules.go index cd3127e..f1a2c58 100644 --- a/rules.go +++ b/rules.go @@ -224,7 +224,7 @@ func resetMsgParsingRules() error { r = MessageParsingRule{ Priority: 9998, Description: fmt.Sprintf("Specific item brew %s", o.Code), - Rule: fmt.Sprintf("^\/alch_(?P%s)$", regexp.QuoteMeta(o.Code)), + Rule: fmt.Sprintf("^\//alch_(?P%s)$", regexp.QuoteMeta(o.Code)), MsgTypeID64: cacheObjSubType[`msg_bot_brew_item`], ChatID64: 0, SenderUserID64: users[id],