mirror of
https://github.com/watn3y/steamsalty.git
synced 2025-09-08 17:22:23 +02:00
Don't log every received message
This commit is contained in:
parent
20b5287675
commit
0e278d87ec
1 changed files with 1 additions and 2 deletions
3
bot.go
3
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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue