From 86dbc506ac8249e486077267f4842530d73f8860 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Tue, 25 Aug 2020 13:50:39 +0300 Subject: [PATCH] Status Command --- client/commands/status.js | 9 ++++++--- client/messages.js | 7 +++++-- config.js | 2 ++ 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/client/commands/status.js b/client/commands/status.js index 56a4f59..9cda430 100644 --- a/client/commands/status.js +++ b/client/commands/status.js @@ -15,10 +15,13 @@ module.exports = { .setTitle(message.statusTitle) .setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["logo"].replace(/[^0-9]+/g, '')) .setColor(client.config.embedColor) - .addField(client.messages.statusField1, client.ws.ping, true) - .addField(client.messages.statusField2, uptime, true) + .addField(client.messages.statusField1, Date.now() - msg.createdTimestamp + "ms", true) + .addField(client.messages.statusField2, client.ws.ping + "ms", true) + .addField(client.messages.statusField3, uptime, true) + .addField(client.messages.statusField4, client.config.version, true) + .addField(client.messages.statusField5, client.config.hostedBy, true) .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); msg.channel.send(embed); - }, + } }; \ No newline at end of file diff --git a/client/messages.js b/client/messages.js index 8aee6ed..0337861 100644 --- a/client/messages.js +++ b/client/messages.js @@ -36,6 +36,9 @@ module.exports = { sendedMaintenanceMessage: "This bot is going to be under maintenance!", footerText: "EximiaBots by Warén Group", statusTitle: "%client.user.username% Status", - statusField1: "Ping", - statusField2: "Uptime" + statusField1: "Bot Latency", + statusField2: "API Latency", + statusField3: "Uptime", + statusField4: "Version", + statusField5: "Hosted by" }; \ No newline at end of file diff --git a/config.js b/config.js index 14014b8..32bf1a1 100644 --- a/config.js +++ b/config.js @@ -18,8 +18,10 @@ module.exports = { //misc embedColor: "#88aa00", invite: "https://discordapp.com/api/oauth2/authorize?client_id=684109535312609409&permissions=3427328&scope=bot", + hostedBy: "[Warén Group](https://waren.io)", //Settings prefix: process.env.RADIOX_PREFIX || "rx-", + version: process.env.RADIOX_VERSION || process.env.npm_package_version }