add бицепц
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Владимир Фёдоров 2023-04-28 13:27:32 +07:00
parent 7b892730f2
commit 2e1dbbc6be
2 changed files with 7 additions and 5 deletions

View File

@ -20,7 +20,7 @@ import (
)
const (
version = "v1.8.0"
version = "v1.9.0"
)
func main() {

View File

@ -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
}