From 2e1dbbc6be3279c9d2b96cf8b9c51ab4b25bf5a4 Mon Sep 17 00:00:00 2001 From: Fedorov Vladimir Date: Fri, 28 Apr 2023 13:27:32 +0700 Subject: [PATCH] =?UTF-8?q?add=20=D0=B1=D0=B8=D1=86=D0=B5=D0=BF=D1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/valera/main.go | 2 +- internal/states/go_bot_state/go_bot_state.go | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/cmd/valera/main.go b/cmd/valera/main.go index f51c4de..cd12db6 100644 --- a/cmd/valera/main.go +++ b/cmd/valera/main.go @@ -20,7 +20,7 @@ import ( ) const ( - version = "v1.8.0" + version = "v1.9.0" ) func main() { diff --git a/internal/states/go_bot_state/go_bot_state.go b/internal/states/go_bot_state/go_bot_state.go index f54b03c..f2b56d0 100644 --- a/internal/states/go_bot_state/go_bot_state.go +++ b/internal/states/go_bot_state/go_bot_state.go @@ -5,11 +5,12 @@ import ( "log" "net/http" "strconv" - "valera/internal/db" - "valera/internal/states" tgbot "github.com/go-telegram-bot-api/telegram-bot-api" "golang.org/x/exp/slices" + + "valera/internal/db" + "valera/internal/states" ) var names = []string{ @@ -19,8 +20,9 @@ var names = []string{ var ( workoutTypes = []string{ - "Отжимания", + "Бицепс", "Пресс", + "Отжимания", "Подтягивания", "Приседания", } @@ -80,7 +82,7 @@ func (s *goBotState) Do(text string, chatInfo *db.ChatInfo) error { if !slices.Contains(names, text) { return nil } - + s.sendGoToChat(chatInfo.ChatID) return nil }