Spaces:
Paused
Paused
Download server.js from TheFirstOython/pythonj: direct link, hf CLI and curl.
- Browser
- Download file 367 Bytes
-
https://huggingface.co/spaces/TheFirstOython/pythonj/resolve/d3d070dc97a42d87bd0aca6407b1574623ded26b/server.js
- Command line
-
hf download hf://spaces/TheFirstOython/pythonj@d3d070dc97a42d87bd0aca6407b1574623ded26b/server.js
-
curl -L -o server.js https://huggingface.co/spaces/TheFirstOython/pythonj/resolve/d3d070dc97a42d87bd0aca6407b1574623ded26b/server.js
367 Bytes
| const http = require('http'); | |
| const PORT = process.env.PORT || 3000; | |
| http.createServer((req, res) => { | |
| res.writeHead(200, {'Content-Type': 'text/html; charset=utf-8'}); | |
| res.end('<h1>🤖 Telegram FFmpeg Bot is running!</h1><p>This confirms the server is up.</p>'); | |
| }).listen(PORT, () => { | |
| console.log(`🌐 Web server running at http://localhost:${PORT}`); | |
| }); |