Update webhook_handler.py
Browse files- webhook_handler.py +1 -1
webhook_handler.py
CHANGED
|
@@ -73,7 +73,7 @@ class WebhookHandler(BaseHTTPRequestHandler):
|
|
| 73 |
"""Handle dialin.connected event (e.g., trigger bot startup)."""
|
| 74 |
# Example: Send payload to /start endpoint (modify URL as needed)
|
| 75 |
import requests
|
| 76 |
-
start_url = "https
|
| 77 |
try:
|
| 78 |
response = requests.post(start_url, json=payload, timeout=5)
|
| 79 |
logger.info(f"Sent to /start: {response.status_code} - {response.text}")
|
|
|
|
| 73 |
"""Handle dialin.connected event (e.g., trigger bot startup)."""
|
| 74 |
# Example: Send payload to /start endpoint (modify URL as needed)
|
| 75 |
import requests
|
| 76 |
+
start_url = "https://deadmon-pipecat.hf.space/start" # Replace with your endpoint
|
| 77 |
try:
|
| 78 |
response = requests.post(start_url, json=payload, timeout=5)
|
| 79 |
logger.info(f"Sent to /start: {response.status_code} - {response.text}")
|