This repository has been archived on 2024-01-16. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Matheus Sampaio Queiroga 364b44cb5b Sirherobrine23 Dev Merge (#160)
* Update binaris, Update README, Init remove fetchSync

* CI Test
2021-08-16 22:40:14 -03:00

22 lines
685 B
JavaScript

(async ()=>{
try {
const bds = require("../../index");
await bds.download("latest", true);
console.log("Api:", bds.api());
console.log("Backup:", bds.backup());
console.log("Detect Server:", bds.detect());
console.log("Kill Server:", bds.kill());
console.log("Get Config:", bds.get_config());
console.log("Start:", bds.start());
setTimeout(() => {
console.log("Kill Server:", bds.kill());
}, 1 * 30 * 1000);
setTimeout(() => {
process.exit(0);
}, 1 * 60 * 1000);
} catch (err) {
console.log("Detect Error:", err);
process.exit(1)
}
})()