mirror of
https://git.juggalol.com/agatha/stockbot-buyvm.git
synced 2024-12-29 09:06:40 +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 Discord Webhook and add it to
config.py
:
DISCORD_WEBHOOK = '<discord webhook url>'
- 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