diff options
author | RaindropsSys <contact@minteck.org> | 2023-05-21 12:19:54 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-05-21 12:19:54 +0200 |
commit | 6ecb6d7d7d246a4e1db0985422ac011ad8b522b7 (patch) | |
tree | 78672263afe1957db373c155388916d2578f0a7b | |
parent | 8f5d90763d9a0a07f2e29f023a84637fed3302ad (diff) | |
download | luna-6ecb6d7d7d246a4e1db0985422ac011ad8b522b7.tar.gz luna-6ecb6d7d7d246a4e1db0985422ac011ad8b522b7.tar.bz2 luna-6ecb6d7d7d246a4e1db0985422ac011ad8b522b7.zip |
Updated app.js (automated)
-rw-r--r-- | app.js | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -217,9 +217,13 @@ global.startApp = async () => { global.i2 = setInterval(async () => { try { - if (!(await axios("https://ponies.equestria.horse/api/session", { + let data = (await axios("https://ponies.equestria.horse/api/session", { headers: {'Cookie': 'PEH2_SESSION_TOKEN=' + token} - })).data['created']) { + })).data; + + console.log(data); + + if (!data['created']) { throw new Error(); } } catch (e) { |