Badumetsibb commited on
Commit
51964ee
·
verified ·
1 Parent(s): 7f00109

Create test_alert.py

Browse files
Files changed (1) hide show
  1. test_alert.py +18 -0
test_alert.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+
3
+ NTFY_TOPIC = "forex_gnn_live_alerts" # Make sure this matches your app.py
4
+
5
+ try:
6
+ requests.post(
7
+ "https://ntfy.sh/",
8
+ json={
9
+ "topic": NTFY_TOPIC,
10
+ "message": "Test Alert: The Bot is Connected! 🚀",
11
+ "title": "System Check",
12
+ "tags": ["white_check_mark"],
13
+ "priority": "high"
14
+ }
15
+ )
16
+ print("✅ Test Alert Sent!")
17
+ except Exception as e:
18
+ print(f"❌ Error: {e}")test_