F95API/test/user-test.js

39 lines
1.0 KiB
JavaScript
Raw Normal View History

const { join } = require("path");
const {
debug,
login,
getGameData,
loadF95BaseData,
getUserData,
logout,
} = require("../app/index.js");
const GameDownload = require("../app/scripts/classes/game-download.js");
2020-09-29 15:11:43 +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() {
let loginResult = await login("MillenniumEarl", "f9vTcRNuvxj4YpK");
2020-09-29 15:11:43 +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);
// let userData = await getUserData();
// console.log(userData);
}
logout();
}
async function downloadGameMEGA() {
let gd = new GameDownload();
gd.hosting = "NOPY";
gd.link =
"https://f95zone.to/masked/mega.nz/2733/1470797/4O5LKwMx4ZSlw0QYTVMP0uDK660/hoobTb44f0IKx7Yio2SE2w/loX_px2vLRyNRQCnkNn5U7nnQe7jGmpEVERvH1tk7RjAFkQbs2kH_vCK6zVmRDuqiypPoIx358MNHHCd3QCdVvEsClSiAq4rwjK0r_ruXIs";
let savepath = join(__dirname, "Kingdom_of_Deception-pc0.10.8.zip");
let result = await gd.download(savepath);
console.log(result);
}