Spaces:
No application file
No application file
| import requests | |
| NTFY_TOPIC = "forex_gnn_live_alerts" # Make sure this matches your app.py | |
| try: | |
| requests.post( | |
| "https://ntfy.sh/", | |
| json={ | |
| "topic": NTFY_TOPIC, | |
| "message": "Test Alert: The Bot is Connected! π", | |
| "title": "System Check", | |
| "tags": ["white_check_mark"], | |
| "priority": "high" | |
| } | |
| ) | |
| print("β Test Alert Sent!") | |
| except Exception as e: | |
| print(f"β Error: {e}")test_ |