2020-10-03 14:42:29 +00:00
|
|
|
const {
|
|
|
|
debug,
|
|
|
|
login,
|
|
|
|
getGameData,
|
|
|
|
loadF95BaseData,
|
|
|
|
getUserData,
|
2020-10-16 08:06:03 +00:00
|
|
|
logout,
|
2020-10-10 14:27:01 +00:00
|
|
|
} = require("../app/index.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();
|
2020-09-29 15:11:43 +00:00
|
|
|
|
|
|
|
async function main() {
|
2020-10-16 08:21:43 +00:00
|
|
|
const 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-21 13:31:11 +00:00
|
|
|
const gameData = await getGameData("kingdom of deception", 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();
|
|
|
|
}
|