University rating checker
Telegram bot for notifying about rating changes.
Running locally
You need rust installed
- Get token from @BotFather
- Create
.env
file and fill (this file is used only at compile time)
TG_TOKEN=TOKEN-HERE
- Clone this repository
- Run from inside project directory
cargo r --release
Building for production
You need cross installed for building static-linked binary.
Follow steps from "Running locally", also add to .env
token for production bot:
TG_TOKEN_PROD=TOKEN-HERE
then run:
cross b --release --features prod
Alternatively, you can build app on the target machine
cargo b --release --features prod
and take the executable file from the target/release
folder.
Development
Enable git hooks:
git config core.hooksPath .githooks