Go to file
2024-09-15 18:02:25 -04:00
tests Initial skeleton commit 2023-12-02 14:49:13 -05:00
.gitignore use matrix bot 2024-09-15 18:02:25 -04:00
Dockerfile Dockerize application to run on cronjob 2023-12-02 16:23:11 -05:00
matrix.py use matrix bot 2024-09-15 18:02:25 -04:00
README.md Add usage instructions 2023-12-03 12:19:26 -05:00
requirements.txt use matrix bot 2024-09-15 18:02:25 -04:00
stockbot-buyvm.py use matrix bot 2024-09-15 18:02:25 -04: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