From 4f1c36768a3aa51ee90db9adc70ecf9de679bb3d Mon Sep 17 00:00:00 2001 From: agatha Date: Sun, 15 Sep 2024 18:28:37 -0400 Subject: [PATCH] chore: add URL to alert message --- stockbot-buyvm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stockbot-buyvm.py b/stockbot-buyvm.py index c446386..3e17bee 100644 --- a/stockbot-buyvm.py +++ b/stockbot-buyvm.py @@ -61,7 +61,7 @@ async def main(): logger.info('checking buyvm stocks') config = load_config('config.json') bot = MatrixBot(config['matrix']) - memory_filter = config.get('memory', [512, 1, 2, 4, 8, 16, 32]) # Defaults to all sizes + memory_filter = config.get('memory', [512, 1, 2, 4]) # Defaults to price <= $15.00 for url in URLS: html = get_url(url) @@ -76,7 +76,7 @@ async def main(): if qty > 0 and (memory in memory_filter): logger.info(f"{package['name']}: {package['qty']} in stock") - await bot.send_message(f"{package['name']}: {package['qty']} in stock") + await bot.send_message(f"🚨 {package['name']}: {package['qty']} in stock 🚨\n{package['url']}") await bot.close()