fast72 commited on
Commit
823e284
·
verified ·
1 Parent(s): e7ac85d

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -5
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
- if (online) {
15
- res.send(`Server is up | ${online} Players online!`);
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
  });