From b0d68f3a8371ea39aab2dca2bdf4e40b1e05525c Mon Sep 17 00:00:00 2001 From: Noah Theus Date: Sun, 22 Dec 2024 08:21:02 +0100 Subject: [PATCH] Don't log every received message --- bot.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bot.go b/bot.go index 66eaa36..e2e15b9 100644 --- a/bot.go +++ b/bot.go @@ -29,9 +29,8 @@ func bot() { continue } - log.Info().Int64("ChatID", update.Message.Chat.ID).Int64("UserID", update.Message.From.ID).Str("Text", update.Message.Text).Msg("Recieved Message") - if update.Message.IsCommand() { + log.Info().Int64("ChatID", update.Message.Chat.ID).Int64("UserID", update.Message.From.ID).Str("Text", update.Message.Text).Msg("Received Command") commands.Commands(update, bot) } }