From ff659912459c9ff5dd5f1f390a8b9d6af99202bc Mon Sep 17 00:00:00 2001 From: inputnoise Date: Wed, 12 Nov 2025 11:08:21 +0100 Subject: [PATCH] prettied up the output sent to discord --- crawler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crawler.py b/crawler.py index e4eec4b..9374cda 100644 --- a/crawler.py +++ b/crawler.py @@ -94,7 +94,9 @@ def send_to_discord_webhook(data, webhook_url): other_events = [e for e in data if not is_pub_event(e)] # Format as plain grouped messages def format_batch(events, title): - content = f"**{title}**\n" + import datetime + today = datetime.datetime.now().strftime('%Y-%m-%d') + content = f"## {today}\n**{title}**\n" for item in events: content += ( f"> **{item['nation']}**\n"