Update and rename status to status.js

This commit is contained in:
小虎故洞
2021-02-13 13:58:23 +08:00
committed by GitHub
parent d92e10ef49
commit 29a0f7b5ae

View File

@@ -13,7 +13,7 @@ module.exports = async (ctx) => {
const data = response.data;
const status = data.online;
console.log(status);
let description = '';
if (Object.keys(data)[0] == "online") {
description = `Status: ${Object.keys(data)[0]} <br> Guests: ${status.guests} <br>Registered: ${status.registered} <br> Other: ${status.other} <br>Total: ${status.total} <br> Fa Server Time: ${data.fa_server_time} <br> Fa Server Time at: ${data.fa_server_time_at} `;