prettied up the output sent to discord

This commit is contained in:
2025-11-12 11:08:21 +01:00
parent 9b1f8aacab
commit ff65991245

View File

@ -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"