瀏覽代碼

Fix final stupid bug

Foppe Hemminga 6 年之前
父節點
當前提交
e5c56fcd8f
共有 2 個文件被更改,包括 9 次插入2 次删除
  1. 8 1
      status.json
  2. 1 1
      view.py

+ 8 - 1
status.json

@@ -1 +1,8 @@
-{"text": ["Okay", "Loot level III"], "roman": "III", "integer": 3}
+{
+  "integer": 0,
+  "roman": 0,
+  "text": [
+    "In hospital for 1 hrs 51 mins ",
+    "Defeated by <a href=\"profiles.php?XID=2157516\">AlexSosa</a>"
+  ]
+}

+ 1 - 1
view.py

@@ -19,7 +19,7 @@ def send_message(status):
     pprint(this_json)
     for webhook in webhooks:
         url = base_url+webhook
-        response = requests.post(url, json=json)
+        response = requests.post(url, json=this_json)
         if response.status_code in [200, 204]:
             print("Webhook executed")
         else: