CLI Color and Modifications actions relelases #163

Merged
Sirherobrine23 merged 6 commits from main into main 2021-08-20 02:56:15 +00:00
2 changed files with 7 additions and 7 deletions
Showing only changes of commit d999526c62 - Show all commits

View File

@@ -2,12 +2,12 @@
try { try {
const bds = require("../../index"); const bds = require("../../index");
await bds.download("latest", true); await bds.download("latest", true);
console.log("Api:", await bds.api()); console.log("Api:", bds.api());
console.log("Backup:", await bds.backup()); console.log("Backup:", bds.backup());
console.log("Detect Server:", await bds.detect()); console.log("Detect Server:", bds.detect());
console.log("Kill Server:", await bds.kill()); console.log("Kill Server:", bds.kill());
console.log("Get Config:", await bds.get_config()); console.log("Get Config:", bds.get_config());
console.log("Start:", await bds.start()); console.log("Start:", bds.start());
setTimeout(() => { setTimeout(() => {
console.log("Kill Server:", bds.kill()); console.log("Kill Server:", bds.kill());
}, 1 * 30 * 1000); }, 1 * 30 * 1000);

View File

@@ -11,7 +11,7 @@ function Backup() {
bedrock: GetServerPaths("bedrock"), bedrock: GetServerPaths("bedrock"),
java: GetServerPaths("java"), java: GetServerPaths("java"),
pocketmine: GetServerPaths("pocketmine"), pocketmine: GetServerPaths("pocketmine"),
jsprismarine: GetServerPaths("jsprismarine") spigot: GetServerPaths("spigot"),
} }
const CurrentDate = new Date(); const CurrentDate = new Date();
const name = `Bds_Maneger_Core_Backups_${CurrentDate.getDate()}-${CurrentDate.getMonth()}-${CurrentDate.getFullYear()}.zip` const name = `Bds_Maneger_Core_Backups_${CurrentDate.getDate()}-${CurrentDate.getMonth()}-${CurrentDate.getFullYear()}.zip`