docs: update README.md with matrix config

This commit is contained in:
agatha 2024-09-15 18:07:28 -04:00
parent e07591b38b
commit 93146294d8
3 changed files with 12 additions and 5 deletions

View File

@ -6,6 +6,6 @@ COPY requirements.txt /app
RUN pip install -r requirements.txt
COPY stockbot-buyvm.py /app
COPY config.py /app
COPY config.json /app
CMD ["python", "stockbot-buyvm.py"]

View File

@ -2,9 +2,16 @@
Send alerts when [BuyVM](https://buyvm.net) has KVM slices in stock.
## Usage
1. Create a Discord Webhook and add it to `config.py`:
```python
DISCORD_WEBHOOK = '<discord webhook url>'
1. Create a JSON configuration file in `config.json`:
```json
{
"matrix": {
"homeserver": "https://matrix.juggalol.com",
"username": "",
"password": "",
"room_id": ""
}
}
```
2. Build Docker container: