From de4200c1505b08e08a36c23daf763853c9ce02b2 Mon Sep 17 00:00:00 2001 From: nefrace Date: Tue, 14 Feb 2023 11:28:46 +0300 Subject: [PATCH] Fixed Notification time --- kicker/handlers.go | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/kicker/handlers.go b/kicker/handlers.go index 529b451..a702fb2 100644 --- a/kicker/handlers.go +++ b/kicker/handlers.go @@ -27,16 +27,17 @@ func userJoined(b *bot, update *echotron.Update) error { message := update.Message store := tongo.NewStore[db.User](Client) user := db.User{ - Item: tongo.NewID(), - UserId: message.From.ID, - Username: message.From.Username, - FirstName: message.From.FirstName, - LastName: message.From.LastName, - IsBanned: false, - ChatId: message.Chat.ID, - JoinedMessage: message.ID, - CorrectAnswer: int8(captcha.CorrectAnswer), - DateJoined: time.Now(), + Item: tongo.NewID(), + UserId: message.From.ID, + Username: message.From.Username, + FirstName: message.From.FirstName, + LastName: message.From.LastName, + IsBanned: false, + ChatId: message.Chat.ID, + JoinedMessage: message.ID, + CorrectAnswer: int8(captcha.CorrectAnswer), + DateJoined: time.Now(), + LastNotification: time.Now(), } // user.CorrectAnswer = int8(captcha.CorrectAnswer) ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second)