Satont / twitch-notifier

Notify users about some streamer wen't online

Home Page:https://t.me/TwiNotifyBot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Twitch Notifier

GitHub go.mod Go version Coverage Status

Bot for sending twitch streams notifications in telegram.

Development

Download dependencies

go mod download

Requirements

  • Golang 1.19+

Generate

After clone/on first setup/on schema change - you should run

make generate

Testing

make tests

Running

docker compose -f docker-compose.dev.yml up -d
make dev

Database schemas and migrations

Writing schemas

All schemas located in ./ent/schema directory, but also we are using internal structures. Internal structures located in internal/db/db_models. So you should change both of them.

After changing any schema in /ent/schema folder, you should regenerate data via make generate

Migrations

Requirements

Create

make migrate-create somecoolname

Apply

make migrate-apply

About

Notify users about some streamer wen't online

https://t.me/TwiNotifyBot


Languages

Language:Go 99.3%Language:Makefile 0.4%Language:Dockerfile 0.3%Language:Shell 0.0%