Spaces:
Paused
Paused
ayoub ayoub
commited on
Create server.js
Browse files
server.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const http = require('http');
|
| 2 |
+
const PORT = process.env.PORT || 3000;
|
| 3 |
+
|
| 4 |
+
http.createServer((req, res) => {
|
| 5 |
+
res.writeHead(200, {'Content-Type': 'text/html; charset=utf-8'});
|
| 6 |
+
res.end('<h1>🤖 Telegram FFmpeg Bot is running!</h1><p>This confirms the server is up.</p>');
|
| 7 |
+
}).listen(PORT, () => {
|
| 8 |
+
console.log(`🌐 Web server running at http://localhost:${PORT}`);
|
| 9 |
+
});
|