summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-05-21 12:19:54 +0200
committerRaindropsSys <contact@minteck.org>2023-05-21 12:19:54 +0200
commit6ecb6d7d7d246a4e1db0985422ac011ad8b522b7 (patch)
tree78672263afe1957db373c155388916d2578f0a7b
parent8f5d90763d9a0a07f2e29f023a84637fed3302ad (diff)
downloadluna-6ecb6d7d7d246a4e1db0985422ac011ad8b522b7.tar.gz
luna-6ecb6d7d7d246a4e1db0985422ac011ad8b522b7.tar.bz2
luna-6ecb6d7d7d246a4e1db0985422ac011ad8b522b7.zip
Updated app.js (automated)
-rw-r--r--app.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/app.js b/app.js
index 11e6f6f..83e07ee 100644
--- a/app.js
+++ b/app.js
@@ -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) {