2020-10-03 14:42:29 +00:00
|
|
|
const {
|
|
|
|
debug,
|
|
|
|
login,
|
|
|
|
getGameData,
|
|
|
|
loadF95BaseData,
|
|
|
|
getUserData,
|
|
|
|
logout,
|
|
|
|
} = require("../app/index");
|
2020-09-29 15:11:43 +00:00
|
|
|
|
2020-10-01 19:13:23 +00:00
|
|
|
//debug(true);
|
2020-09-29 15:11:43 +00:00
|
|
|
main();
|
|
|
|
|
|
|
|
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();
|
|
|
|
let gameData = await getGameData("kingdom of deception", false);
|
|
|
|
console.log(gameData.pop());
|
2020-10-01 19:13:23 +00:00
|
|
|
|
2020-10-03 14:42:29 +00:00
|
|
|
// let userData = await getUserData();
|
|
|
|
// console.log(userData);
|
|
|
|
}
|
|
|
|
logout();
|
|
|
|
}
|