Skip to content

Commit

Permalink
try pulling time out
Browse files Browse the repository at this point in the history
  • Loading branch information
tblanarik committed Oct 13, 2024
1 parent 908449d commit 3fca94e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spotbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 3fca94e

Please sign in to comment.