Go to file
2024-09-15 18:55:32 -04:00
tests Initial skeleton commit 2023-12-02 14:49:13 -05:00
.gitignore feat!: discord replaced by matrix 2024-09-15 18:31:30 -04:00
.pylintrc docs: add docstrings for MatrixBot 2024-09-15 18:51:34 -04:00
Dockerfile feat!: discord replaced by matrix 2024-09-15 18:31:30 -04:00
matrix.py docs: add docstrings for MatrixBot 2024-09-15 18:51:34 -04:00
README.md feat!: discord replaced by matrix 2024-09-15 18:31:30 -04:00
requirements.txt feat!: discord replaced by matrix 2024-09-15 18:31:30 -04:00
stockbot-buyvm.py docs: add docstrings 2024-09-15 18:55:32 -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