Skip to content

Monitors Steam discounts and alerts you on Telegram

License

Notifications You must be signed in to change notification settings

vsl-iil/gamemonitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gamemonitor

ru en

Monitors and notifies about Steam game discounts.

Usage

Usage: gamemonitor [OPTIONS] --appid <APPID> --threshold <THRESHOLD> --delay <DELAY> [FEEDTYPE]

Arguments:
  [FEEDTYPE]  Way to notify about discounts [default: log] [possible values: log, telegram]

Options:
  -a, --appid <APPID>          App ID on Steam. Usually it's the last number contained in Store URL of the game
      --cc <CC>                Country code. Use this to get country-specific price [default: ]
  -t, --threshold <THRESHOLD>  Minimal discount that will trigger the monitor
  -d, --delay <DELAY>          How many seconds to wait between check. Should be no less than 2 secs. You may use `s', `m', `h', `d' suffixes to specify time in seconds, minutes, hours or days. Default unit: seconds
  -h, --help                   Print help
  -V, --version                Print version

Running (Docker)

Build a container:

docker build . -t gamemonitor

Launch it with:

docker run -d --restart=unless-stopped --env-file=.env gamemonitor

--env-file argument is optional. If you choose telegram notify method, then the project directory should also contain an .env file with the following enviroment variables specified:

TELEGRAM_API_TOKEN=<Telegram bot token>
TELEGRAM_CHAT_ID=<ID of a chat with the bot>

Building

Build from source:

cargo build --release

Launch it with:

cargo run

About

Monitors Steam discounts and alerts you on Telegram

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published