Files
Yiqun/worker/tests/test.ts
2025-04-24 10:24:42 -03:00

19 lines
524 B
TypeScript

// async function testSlackWebhook(){
// const slackResponse = await fetch('https://hooks.slack.com/services/', {
// method: "POST",
// headers: {
// "Content-Type": "application/json",
// },
// body: JSON.stringify({
// text: `[TASK] Error summarizing issue:\n ${JSON.stringify({
// status: "error",
// data: {
// message: "test"
// }
// })}`
// }),
// });
// console.log("[TASK] slackResponse: ", slackResponse);
// }
// testSlackWebhook();