jmaeso / gpu-scavenger

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gpu-scavenger

MIT License Go Report Card

This Bot listens to some GPU retailer sites and notifies via Telegram in case there is stock available.

Default Retailers

Run

Docker

docker run -e GPUSCAVENGER_TELEGRAM_BOT_TOKEN=<telegram-bot-token> -e GPUSCAVENGER_TELEGRAM_NOTIFICATION_CHAT=<telegram-notification-chat> smoya/gpu-scavenger:latest

Config

To run this project, you will need to specify some of the following environment variables:

Name Description Required Default
GPUSCAVENGER_TELEGRAM_BOT_TOKEN Telegram Bot Token. Create one with https://t.me/botfather.
GPUSCAVENGER_TELEGRAM_NOTIFICATION_CHAT Telegram Chat ID. Easy: Invite https://t.me/GetIDsBot to the chat between you and your own bot.
GPUSCAVENGER_TIMEOUT HTTP Client requests timeout (applies for each website) 4s
GPUSCAVENGER_MIN_TIME Min amount of time to wait between each cycle of requests. Used for avoid bans. 10s
GPUSCAVENGER_MAX_TIME Max amount of time to wait between each cycle of requests. Used for avoid bans. 20s
GPUSCAVENGER_RENOTIFY_AFTER Articles won't be sent again if they are in stock for this period. 10m
GPUSCAVENGER_DEBUG Enables debug log level which increases verbosity. false

License

MIT

About


Languages

Language:Go 90.5%Language:Makefile 6.3%Language:Dockerfile 3.2%