mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
fix: use correct format for log
This commit is contained in:
parent
7b8ddf03b5
commit
58aadd9f45
|
@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user