From ee92709079bce95f91466ff77998fe7b737bb0b7 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 29 Dec 2019 19:05:36 +0800 Subject: [PATCH] test --- bot.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/bot.go b/bot.go index 9d33b30..19800df 100644 --- a/bot.go +++ b/bot.go @@ -101,9 +101,6 @@ func botQuery(q *tb.Query) { func botText(m *tb.Message) { PrintText(m) - b, _ := json.Marshal(m) - log.Printf("botText : %s\n", string(b)) - if (m.Chat.ID == cfg.Bot.Depositchat || m.Chat.ID == cfg.Bot.Mainchat) && m.IsForwarded() && int64(m.OriginalSender.ID) == chtwrsbotID64 { log.Printf("botText : forwarding message.\n") cwm := ChatWarsMessage{ @@ -116,10 +113,6 @@ func botText(m *tb.Message) { IsForwarded: true, } MQCWMsgQueue <- cwm - - } else { - log.Printf("botText : printing message.\n") - } // all the text messages that weren't // captured by existing handlers