add бицепц
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
7b892730f2
commit
2e1dbbc6be
|
@ -20,7 +20,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
version = "v1.8.0"
|
version = "v1.9.0"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -5,11 +5,12 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
"valera/internal/db"
|
|
||||||
"valera/internal/states"
|
|
||||||
|
|
||||||
tgbot "github.com/go-telegram-bot-api/telegram-bot-api"
|
tgbot "github.com/go-telegram-bot-api/telegram-bot-api"
|
||||||
"golang.org/x/exp/slices"
|
"golang.org/x/exp/slices"
|
||||||
|
|
||||||
|
"valera/internal/db"
|
||||||
|
"valera/internal/states"
|
||||||
)
|
)
|
||||||
|
|
||||||
var names = []string{
|
var names = []string{
|
||||||
|
@ -19,8 +20,9 @@ var names = []string{
|
||||||
|
|
||||||
var (
|
var (
|
||||||
workoutTypes = []string{
|
workoutTypes = []string{
|
||||||
"Отжимания",
|
"Бицепс",
|
||||||
"Пресс",
|
"Пресс",
|
||||||
|
"Отжимания",
|
||||||
"Подтягивания",
|
"Подтягивания",
|
||||||
"Приседания",
|
"Приседания",
|
||||||
}
|
}
|
||||||
|
@ -80,7 +82,7 @@ func (s *goBotState) Do(text string, chatInfo *db.ChatInfo) error {
|
||||||
if !slices.Contains(names, text) {
|
if !slices.Contains(names, text) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
s.sendGoToChat(chatInfo.ChatID)
|
s.sendGoToChat(chatInfo.ChatID)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue