Go to file
2024-09-15 18:20:50 -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 docs: update README.md with matrix config 2024-09-15 18:07:28 -04:00
matrix.py use matrix bot 2024-09-15 18:02:25 -04:00
README.md feat: memory filter can be specified in the config 2024-09-15 18:20:50 -04:00
requirements.txt use matrix bot 2024-09-15 18:02:25 -04:00
stockbot-buyvm.py feat: memory filter can be specified in the config 2024-09-15 18:20:50 -04:00

stockbot-buyvm

Send alerts when BuyVM has KVM slices in stock.

Usage

  1. Create a JSON configuration file in config.json:
{
  "memory": [512, 1, 2, 4],
  "matrix": {
    "homeserver": "https://matrix.juggalol.com",
    "username": "",
    "password": "",
    "room_id": ""
  }
}
  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