Jelajahi Sumber

Fix final stupid bug

Foppe Hemminga 6 tahun lalu
induk
melakukan
e5c56fcd8f
2 mengubah file dengan 9 tambahan dan 2 penghapusan
  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: