Don't log every received message

This commit is contained in:
Noah 2024-12-22 08:21:02 +01:00
parent 20b5287675
commit 0e278d87ec
No known key found for this signature in database
GPG key ID: D2A7E2C8F77E0430

3
bot.go
View file

@ -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)
}
}