2020-10-10 14:27:28 +00:00
|
|
|
const { join } = require("path");
|
2020-10-03 14:42:29 +00:00
|
|
|
const {
|
|
|
|
debug,
|
|
|
|
login,
|
|
|
|
getGameData,
|
|
|
|
loadF95BaseData,
|
|
|
|
getUserData,
|
|
|
|
logout,
|
2020-10-10 14:27:01 +00:00
|
|
|
} = require("../app/index.js");
|
|
|
|
const GameDownload = require("../app/scripts/classes/game-download.js");
|
2020-09-29 15:11:43 +00:00
|
|
|
|
2020-10-10 14:27:01 +00:00
|
|
|
debug(true);
|
2020-10-11 20:45:20 +00:00
|
|
|
main();
|
|
|
|
//downloadGameMEGA();
|
2020-09-29 15:11:43 +00:00
|
|
|
|
|
|
|
async function main() {
|
2020-10-03 14:42:29 +00:00
|
|
|
let loginResult = await login("MillenniumEarl", "f9vTcRNuvxj4YpK");
|
2020-09-29 15:11:43 +00:00
|
|
|
|
2020-10-03 14:42:29 +00:00
|
|
|
if (loginResult.success) {
|
|
|
|
await loadF95BaseData();
|
2020-10-14 14:04:50 +00:00
|
|
|
let gameData = await getGameData("queen's brothel", false);
|
2020-10-11 20:45:20 +00:00
|
|
|
console.log(gameData);
|
2020-10-01 19:13:23 +00:00
|
|
|
|
2020-10-03 14:42:29 +00:00
|
|
|
// let userData = await getUserData();
|
|
|
|
// console.log(userData);
|
|
|
|
}
|
|
|
|
logout();
|
|
|
|
}
|
2020-10-10 14:27:01 +00:00
|
|
|
|
|
|
|
async function downloadGameMEGA() {
|
|
|
|
let gd = new GameDownload();
|
|
|
|
gd.hosting = "NOPY";
|
2020-10-10 14:27:28 +00:00
|
|
|
gd.link =
|
|
|
|
"https://f95zone.to/masked/mega.nz/2733/1470797/4O5LKwMx4ZSlw0QYTVMP0uDK660/hoobTb44f0IKx7Yio2SE2w/loX_px2vLRyNRQCnkNn5U7nnQe7jGmpEVERvH1tk7RjAFkQbs2kH_vCK6zVmRDuqiypPoIx358MNHHCd3QCdVvEsClSiAq4rwjK0r_ruXIs";
|
2020-10-10 14:27:01 +00:00
|
|
|
let savepath = join(__dirname, "Kingdom_of_Deception-pc0.10.8.zip");
|
|
|
|
let result = await gd.download(savepath);
|
|
|
|
console.log(result);
|
2020-10-10 14:27:28 +00:00
|
|
|
}
|