From 471056434616b811907d4604f6b64b555e3d95ef Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 11 Oct 2019 16:19:13 +0800 Subject: [PATCH] update vault status --- bot.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bot.go b/bot.go index 6eb2828..4d56182 100644 --- a/bot.go +++ b/bot.go @@ -721,7 +721,7 @@ func botVault(m *tb.Message, itemTypeList []int64) { } } */ - if !m.Private() { + if !(m.Private() || m.Chat.ID == cfg.Bot.Mainchat) { return } @@ -736,7 +736,6 @@ func botVault(m *tb.Message, itemTypeList []int64) { p.ItemTypeListID64 = append(p.ItemTypeListID64, itemTypeList...) b, _ := json.Marshal(p) - log.Printf("botVault:\n%s\n", string(b)) t := time.Now().UTC() _, err := createJob(objSubTypeJobVaultStatus, objJobPriority, int64(m.Sender.ID), 0, t, b)