Ver código fonte

Test with url to Discord webhook

Foppe Hemminga 6 anos atrás
pai
commit
5508c67b99
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      view.py

+ 1 - 1
view.py

@@ -15,7 +15,7 @@ def send_message(status):
     webhooks = json.loads(webhooks_json)
     name = status['name']
     its_id = status['id']
-    status_text = f"{name} [{its_id}] → Loot level changed to "+roman.toRoman(status['integer'])
+    status_text = f"[{name} \[{its_id}\]](https://www.torn.com/profiles.php?XID={its_id}) → Loot level changed to "+roman.toRoman(status['integer'])
     this_json = {'content': status_text}
     pprint(this_json)
     for webhook in webhooks: