fix: use correct format for log

This commit is contained in:
David Chang 2020-12-06 13:47:52 +08:00
parent 7b8ddf03b5
commit 58aadd9f45

View File

@ -64,12 +64,12 @@ info - print information about current chat
bot.Handle("/info", func(m *tb.Message) {
if m.Sender.ID == notifier.chatUser.ID {
bot.Send(notifier.chatUser,
fmt.Sprintf("Welcome! your username: %s, user ID: %s",
fmt.Sprintf("Welcome! your username: %s, user ID: %d",
notifier.chatUser.Username,
notifier.chatUser.ID,
))
} else {
log.Warningf("Incorrect user tried to access bot! sender id: %s", m.Sender)
log.Warningf("Incorrect user tried to access bot! sender username: %s id: %d", m.Sender.Username, m.Sender.ID)
}
})