mirror of
https://git.juggalol.com/agatha/stockbot-buyvm.git
synced 2024-11-16 12:46:38 +00:00
tests | ||
.gitignore | ||
Dockerfile | ||
matrix.py | ||
README.md | ||
requirements.txt | ||
stockbot-buyvm.py |
stockbot-buyvm
Send alerts when BuyVM has KVM slices in stock.
Usage
- Create a JSON configuration file in
config.json
:
{
"memory": [512, 1, 2, 4],
"matrix": {
"homeserver": "https://matrix.juggalol.com",
"username": "",
"password": "",
"room_id": ""
}
}
- Build Docker container:
docker build -t stockbot-buyvm .
- Run with a cronjob and optionally capture logs:
*/10 * * * * docker run --rm stockbot-buyvm >> /home/user/.local/logs/stockbot-buyvm.log 2>&1