fix: correct server class structure and improve error handling
parent
352d201db5
commit
2b4d95d3ab
@ -1,4 +1,10 @@
|
|||||||
import { WebhookServer } from './src/server';
|
import { WebhookServer } from './src/server';
|
||||||
|
|
||||||
console.log("Starting WhatsApp Task Bot...");
|
console.log("Starting WhatsApp Task Bot...");
|
||||||
|
try {
|
||||||
WebhookServer.start();
|
WebhookServer.start();
|
||||||
|
console.log("Server started successfully");
|
||||||
|
} catch (error) {
|
||||||
|
console.error("Failed to start server:", error);
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue