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"