Telegram bot for notifying about rating changes.
You need rust installed
- Get token from @BotFather
- Create
.envfile and fill (this file is used only at compile time)
TG_TOKEN=TOKEN-HERE
- Clone this repository
- Run from inside project directory
cargo r --releaseYou 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-HEREthen run:
cross b --release --features prodAlternatively, you can build app on the target machine
cargo b --release --features prodand take the executable file from the target/release folder.
Enable git hooks:
git config core.hooksPath .githooks