From 1ceaa20265ce7a772f719ec6c192cace9177a54f Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 23 Jan 2021 22:40:18 +0100 Subject: [PATCH] fix rerun --- bot.go | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/bot.go b/bot.go index ae12edb..a7a7459 100644 --- a/bot.go +++ b/bot.go @@ -833,17 +833,18 @@ func botShops(m *ChatWarsMessage) { } func botBrewItem(m *ChatWarsMessage, r *regexp.Regexp) { - if hasUnfinishedJob(cacheObjSubType[`job_brew_item`]) { - c := TGCommand{ - Type: commandReplyMsg, - Text: "Brew Item is already running", - FromMsgID64: m.ID64, - FromChatID64: m.ChatID64, + /* + if hasUnfinishedJob(cacheObjSubType[`job_brew_item`]) { + c := TGCommand{ + Type: commandReplyMsg, + Text: "Brew Item is already running", + FromMsgID64: m.ID64, + FromChatID64: m.ChatID64, + } + TGCmdQueue <- c + return } - TGCmdQueue <- c - return - } - + */ clt, err := getLockedIdleClient() if err != nil { c := TGCommand{