Skip to content

viartemev/nhl-recap

Repository files navigation

NHL recap telegeram bot

CI CodeQL

Make commands

$make help

help                           This help.
docker_build_image             docker build
go_mod_verify                  go mod verify
go_build                       go build -v ./...
lint                           golint ./...
test                           go test -race -vet=off ./...

Run bot

nhl_recap --help

Usage of nhl_recap:
  -t, --token string   Token for Telegram Bot API

Run docker

docker run -d viartemev/nhl-recap -t {TELEGRAM_BOT_TOKEN}

Development

Run tests in short mode:

go test -v -short

Data race check:

go test -race

Test coverage:

go test -coverprofile=cover.prof
go tool cover -html=cover.prof