MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / print_summary

Function print_summary

deployments/feishu/webhook-server/start-with-ngrok.py:296–319  ·  view source on GitHub ↗
(port: int, public_url: str, ngrok_url_path: Path, feishu_url_path: Path)

Source from the content-addressed store, hash-verified

294
295
296def print_summary(port: int, public_url: str, ngrok_url_path: Path, feishu_url_path: Path) -> None:
297 request_url = public_url.rstrip("/") + "/"
298 scheduler = importlib.import_module("deployments.feishu.webhook-server.scripts.scheduler")
299 print()
300 print("=" * 60)
301 print("PaperFlow Webhook + ngrok Ready")
302 print("=" * 60)
303 print(f"Local webhook : http://127.0.0.1:{port}/")
304 print(f"Health check : http://127.0.0.1:{port}/health")
305 print(f"ngrok URL : {public_url}")
306 print(f"Request URL : {request_url}")
307 print(f"Saved URL file : {ngrok_url_path}")
308 print(f"Saved URL file : {feishu_url_path}")
309 print("ngrok dashboard: http://127.0.0.1:4040")
310 print(f"Automatic jobs : {scheduler.describe_schedule()}")
311 print()
312 print("Feishu setup:")
313 print("1. Open Feishu Open Platform -> your app -> Event Subscription")
314 print(f"2. Set Request URL to {request_url}")
315 print("3. Enable event: Receive Messages v1.0 (im.message.receive_v1)")
316 print("4. Save the subscription")
317 print("5. Keep this process running if you want scheduled pushes/reports to fire")
318 print()
319 print("Press Ctrl+C to stop.")
320
321
322def main() -> int:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected