From 3fca94e75de345c8e78f22cb55528fce5415db21 Mon Sep 17 00:00:00 2001 From: Trevor Blanarik Date: Sun, 13 Oct 2024 04:26:11 +0000 Subject: [PATCH] try pulling time out --- spotbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spotbot.py b/spotbot.py index 726fb57..c8657e9 100644 --- a/spotbot.py +++ b/spotbot.py @@ -39,9 +39,9 @@ def create_content(req_body, dd): wwffRef = req_body.get('wwffRef', '') spot_deeplink = create_spot_deeplink(source, callsign, wwffRef) - + formatted_time = dd.strftime("%H:%M") # flags = 4 means it will suppress embeds: https://discord.com/developers/docs/resources/message#message-object-message-flags - content = {"content": f"{callsign} | {spot_deeplink} | freq: {frequency} | mode: {mode} | loc: {summitRef}{wwffRef} | {dd.strftime("%H:%M")}", "flags": 4} + content = {"content": f"{callsign} | {spot_deeplink} | freq: {frequency} | mode: {mode} | loc: {summitRef}{wwffRef} | {formatted_time}", "flags": 4} return content def create_spot_deeplink(source, callsign, wwffRef):