Skip to content

Commit

Permalink
comment and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tblanarik committed Sep 21, 2024
1 parent a363d9b commit ca28ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion function_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def create_content(req_body):

spot_deeplink = create_spot_deeplink(source, fullCallsign, wwffRef)

# flags = 4 means it will suppress embeds: https://discord.com/developers/docs/resources/message#message-object-message-flags
content = {"content": f"{fullCallsign} | {source} | freq: {frequency} | mode: {mode} | loc: {summitRef}{wwffRef} | {spot_deeplink}", "flags": 4}
return content

Expand All @@ -40,7 +41,6 @@ def call_target(content):
return func.HttpResponse(response.text, status_code=response.status_code)

def create_spot_deeplink(source, fullCallsign, wwffRef):

match source:
case "sotawatch":
return f"[See their latest spot](https://sotl.as/activators/{fullCallsign})"
Expand Down

0 comments on commit ca28ca0

Please sign in to comment.