We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62ec045 commit b06c371Copy full SHA for b06c371
src/bot/index.ts
@@ -46,7 +46,9 @@ export class CopBot {
46
let body = '';
47
req.on('data', (chunk) => (body += chunk));
48
req.on('end', () => {
49
- console.log(`Incoming webhook data: ${body}`);
+ console.log('Webhook payload received:', body);
50
+ res.writeHead(200, { 'Content-Type': 'text/plain' });
51
+ res.end('OK');
52
});
53
}
54
res.writeHead(200, { 'Content-Type': 'text/plain' });
0 commit comments