MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / sendSlackNotification

Function sendSlackNotification

packages/integrations/src/slack.ts:44–60  ·  view source on GitHub ↗
({
  webhookUrl,
  message,
}: {
  webhookUrl: string;
  message: string;
})

Source from the content-addressed store, hash-verified

42};
43
44export function sendSlackNotification({
45 webhookUrl,
46 message,
47}: {
48 webhookUrl: string;
49 message: string;
50}) {
51 return fetch(webhookUrl, {
52 method: 'POST',
53 headers: {
54 'Content-Type': 'application/json',
55 },
56 body: JSON.stringify({
57 text: message,
58 }),
59 });
60}

Callers 2

notificationJobFunction · 0.90
slackWebhookFunction · 0.90

Calls 2

fetchFunction · 0.50
stringifyMethod · 0.45

Tested by

no test coverage detected