add weight
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-04-09 15:48:31 +07:00
parent ada1a97999
commit a35a5c8efc
9 changed files with 171 additions and 20 deletions
@@ -38,10 +38,6 @@ func (s *eatBotState) Do(text string, chatInfo *db.ChatInfo) error {
log.Println(err)
return nil
}
if count <= 0 {
_, _ = s.bot.Send(tgbot.NewMessage(chatInfo.ChatID, "Все фигня, давай по новой"))
return nil
}
_, _ = s.bot.Send(tgbot.NewMessage(chatInfo.ChatID, fmt.Sprintf("Калории, фу, %d, записал.", count)))
return s.dataBase.SetStatusToChat(chatInfo.ChatID, db.UserStateNone)
}