MCPcopy Create free account
hub / github.com/bcefghj/competitive-intelligence-multi-agent / send_slack

Function send_slack

python/src/tools/notification.py:18–25  ·  view source on GitHub ↗
(message: str, webhook_url: Optional[str] = None)

Source from the content-addressed store, hash-verified

16
17
18async def send_slack(message: str, webhook_url: Optional[str] = None) -> bool:
19 url = webhook_url or config.notification.slack_webhook
20 if not url:
21 logger.info("Slack webhook not configured – skipping")
22 return False
23 async with httpx.AsyncClient() as client:
24 resp = await client.post(url, json={"text": message}, timeout=10)
25 return resp.status_code == 200
26
27
28async def send_dingtalk(message: str, webhook_url: Optional[str] = None) -> bool:

Callers 1

broadcast_alertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected