fix: Update dicord webhook output
All checks were successful
Build Docker / BuildImage (push) Successful in 39s

This commit is contained in:
Nathan Woodburn 2024-10-03 16:01:54 +10:00
parent 7b7cfa52e8
commit a70751fdae
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -152,12 +152,12 @@ def renew_path(path: str):
webhook = os.getenv("DISCORD")
if webhook:
# Parse output
message = "Renewing " + data["data"]
message = f'Renewing {data["data"]}'
if req["error"] != "":
message += "\n\nError: " + req["error"]
message += "\n\nTX: https://hns.cymon.de/tx/" + req["output"].split("'")[1]
requests.post(webhook, json={"content": json.dumps(message)})
requests.post(webhook, json={"content": message})
return jsonify(output)