Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tblanarik committed Oct 18, 2024
1 parent 5e296fa commit 00a778c
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 @@ -27,6 +27,7 @@ def run(req):
existingMessage = get_previous_message(messageId)
content = existingMessage + "\n" + content

# flags = 4 means it will suppress embeds: https://discord.com/developers/docs/resources/message#message-object-message-flags
content_payload = {"content":content, "flags": 4}

messageId = post_message(content_payload, messageId)
Expand All @@ -42,8 +43,7 @@ def create_content(req_body, dd):

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} | {formatted_time}", "flags": 4}

content = f"{callsign} | {spot_deeplink} | freq: {frequency} | mode: {mode} | loc: {summitRef}{wwffRef} | {formatted_time}"
return content

Expand Down

0 comments on commit 00a778c

Please sign in to comment.