Download startProcess.js from Sk0lovek/WhatsBot: direct link, hf CLI and curl.
- Browser
- Download file 298 Bytes
-
https://huggingface.co/spaces/Sk0lovek/WhatsBot/resolve/main/startProcess.js
- Command line
-
hf download hf://spaces/Sk0lovek/WhatsBot/startProcess.js
-
curl -L -o startProcess.js https://huggingface.co/spaces/Sk0lovek/WhatsBot/resolve/main/startProcess.js
298 Bytes
| const { replicate, clean, fetchSession } = require("./session/manage"); | |
| async function main() { | |
| try { | |
| clean(); | |
| await fetchSession(); | |
| await replicate(); | |
| setTimeout(() => { | |
| require("./main"); | |
| }, 2000); | |
| } catch (error) { | |
| console.error(error?.message); | |
| } | |
| } | |
| main(); | |