2023-12-02 19:49:13 +00:00
|
|
|
# stockbot-buyvm
|
2023-12-03 17:19:26 +00:00
|
|
|
Send alerts when [BuyVM](https://buyvm.net) has KVM slices in stock.
|
|
|
|
|
|
|
|
## Usage
|
2024-09-15 22:07:28 +00:00
|
|
|
1. Create a JSON configuration file in `config.json`:
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"matrix": {
|
|
|
|
"homeserver": "https://matrix.juggalol.com",
|
|
|
|
"username": "",
|
|
|
|
"password": "",
|
|
|
|
"room_id": ""
|
|
|
|
}
|
|
|
|
}
|
2023-12-03 17:19:26 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
2. Build Docker container:
|
|
|
|
```shell
|
|
|
|
docker build -t stockbot-buyvm .
|
|
|
|
```
|
|
|
|
|
|
|
|
3. Run with a cronjob and optionally capture logs:
|
|
|
|
```
|
|
|
|
*/10 * * * * docker run --rm stockbot-buyvm >> /home/user/.local/logs/stockbot-buyvm.log 2>&1
|
|
|
|
```
|