mirror of
https://git.juggalol.com/agatha/stockbot-buyvm.git
synced 2024-11-16 20:56:40 +00:00
docs: update README.md with matrix config
This commit is contained in:
parent
e07591b38b
commit
93146294d8
@ -6,6 +6,6 @@ COPY requirements.txt /app
|
|||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
COPY stockbot-buyvm.py /app
|
COPY stockbot-buyvm.py /app
|
||||||
COPY config.py /app
|
COPY config.json /app
|
||||||
|
|
||||||
CMD ["python", "stockbot-buyvm.py"]
|
CMD ["python", "stockbot-buyvm.py"]
|
13
README.md
13
README.md
@ -2,9 +2,16 @@
|
|||||||
Send alerts when [BuyVM](https://buyvm.net) has KVM slices in stock.
|
Send alerts when [BuyVM](https://buyvm.net) has KVM slices in stock.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
1. Create a Discord Webhook and add it to `config.py`:
|
1. Create a JSON configuration file in `config.json`:
|
||||||
```python
|
```json
|
||||||
DISCORD_WEBHOOK = '<discord webhook url>'
|
{
|
||||||
|
"matrix": {
|
||||||
|
"homeserver": "https://matrix.juggalol.com",
|
||||||
|
"username": "",
|
||||||
|
"password": "",
|
||||||
|
"room_id": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Build Docker container:
|
2. Build Docker container:
|
||||||
|
@ -99,4 +99,4 @@ def main_with_shutdown():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main_with_shutdown()
|
main_with_shutdown()
|
||||||
|
Loading…
Reference in New Issue
Block a user