diff --git a/function_app.py b/function_app.py index 687a215..f141725 100644 --- a/function_app.py +++ b/function_app.py @@ -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 @@ -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})"