Update index.js
Browse files
index.js
CHANGED
|
@@ -11,11 +11,8 @@ app.all('/', (_, res) => {
|
|
| 11 |
const match = stdout.match(/"online_user"\s*:\s*"(\d+)"/);
|
| 12 |
const online = match?.[1];
|
| 13 |
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
} else {
|
| 17 |
-
res.send('Server is down');
|
| 18 |
-
}
|
| 19 |
}
|
| 20 |
);
|
| 21 |
});
|
|
|
|
| 11 |
const match = stdout.match(/"online_user"\s*:\s*"(\d+)"/);
|
| 12 |
const online = match?.[1];
|
| 13 |
|
| 14 |
+
console.log(stdout)
|
| 15 |
+
res.send(stdout)
|
|
|
|
|
|
|
|
|
|
| 16 |
}
|
| 17 |
);
|
| 18 |
});
|