Skip to content

Commit b06c371

Browse files
committed
feat(bot): Updated webhook handler to log payload and respond with 200 OK
1 parent 62ec045 commit b06c371

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bot/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ export class CopBot {
4646
let body = '';
4747
req.on('data', (chunk) => (body += chunk));
4848
req.on('end', () => {
49-
console.log(`Incoming webhook data: ${body}`);
49+
console.log('Webhook payload received:', body);
50+
res.writeHead(200, { 'Content-Type': 'text/plain' });
51+
res.end('OK');
5052
});
5153
}
5254
res.writeHead(200, { 'Content-Type': 'text/plain' });

0 commit comments

Comments
 (0)