From 93146294d85269e12813a821bfece1ff1769ddfb Mon Sep 17 00:00:00 2001 From: agatha Date: Sun, 15 Sep 2024 18:07:28 -0400 Subject: [PATCH] docs: update README.md with matrix config --- Dockerfile | 2 +- README.md | 13 ++++++++++--- stockbot-buyvm.py | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 84735be..8035879 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file diff --git a/README.md b/README.md index 44c1dc1..5db0399 100644 --- a/README.md +++ b/README.md @@ -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 = '' +1. Create a JSON configuration file in `config.json`: +```json +{ + "matrix": { + "homeserver": "https://matrix.juggalol.com", + "username": "", + "password": "", + "room_id": "" + } +} ``` 2. Build Docker container: diff --git a/stockbot-buyvm.py b/stockbot-buyvm.py index 4c07fdc..3b80cb4 100644 --- a/stockbot-buyvm.py +++ b/stockbot-buyvm.py @@ -99,4 +99,4 @@ def main_with_shutdown(): if __name__ == '__main__': - main_with_shutdown() \ No newline at end of file + main_with_shutdown()