Go to file
2023-12-03 12:19:26 -05:00
tests Initial skeleton commit 2023-12-02 14:49:13 -05:00
.gitignore Send Discord notifications when stock is available 2023-12-02 15:52:43 -05:00
Dockerfile Dockerize application to run on cronjob 2023-12-02 16:23:11 -05:00
README.md Add usage instructions 2023-12-03 12:19:26 -05:00
requirements.txt Add logging with loguru 2023-12-02 16:37:52 -05:00
stockbot-buyvm.py Add continue when None returned from get_url 2023-12-02 16:38:34 -05:00

stockbot-buyvm

Send alerts when BuyVM has KVM slices in stock.

Usage

  1. Create a Discord Webhook and add it to config.py:
DISCORD_WEBHOOK = '<discord webhook url>'
  1. Build Docker container:
docker build -t stockbot-buyvm .
  1. Run with a cronjob and optionally capture logs:
*/10 * * * * docker run --rm stockbot-buyvm >> /home/user/.local/logs/stockbot-buyvm.log 2>&1